mirror of
				https://github.com/node-red/node-red.git
				synced 2025-03-01 10:36:34 +00:00 
			
		
		
		
	Properly escape node types in palette
We were only escaping the first instance of any invalid dom char and not all of the
This commit is contained in:
		| @@ -150,7 +150,7 @@ RED.palette = (function() { | ||||
|     } | ||||
|  | ||||
|     function escapeNodeType(nt) { | ||||
|         return nt.replace(" ","_").replace(".","_").replace(":","_"); | ||||
|         return nt.replace(/[ .:]/g,"_"); | ||||
|     } | ||||
|  | ||||
|     function addNodeType(nt,def) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user