Update packages/node_modules/@node-red/editor-client/src/js/ui/palette.js

This commit is contained in:
Stephen McLaughlin
2022-09-03 22:01:54 +01:00
committed by GitHub
parent c038c99f9d
commit e11f17672c

View File

@@ -176,7 +176,7 @@ RED.palette = (function() {
} }
const safeType = type.replace(/'/g,"\\'"); const safeType = type.replace(/'/g,"\\'");
function wrapStr(str) { const wrapStr = function (str) {
if(str.indexOf(' ') >= 0) { if(str.indexOf(' ') >= 0) {
return '"' + str + '"' return '"' + str + '"'
} }