mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Better regex for parsing config select width placeholder style
This commit is contained in:
		| @@ -250,8 +250,8 @@ RED.editor = (function() { | ||||
|         var newWidth = input.width(); | ||||
|         var attrStyle = input.attr('style'); | ||||
|         var m; | ||||
|         if ((m = /width\s*:\s*([^;]+)/i.exec(attrStyle)) !== null) { | ||||
|             newWidth = m[1].trim(); | ||||
|         if ((m = /(^|\s|;)width\s*:\s*([^;]+)/i.exec(attrStyle)) !== null) { | ||||
|             newWidth = m[2].trim(); | ||||
|         } else { | ||||
|             newWidth = "70%"; | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user