Merge pull request #3665 from Steve-Mcl/backport-3647

Fix to extend escaped subflow category characters (backport #3647 to v2.x)
This commit is contained in:
Nick O'Leary
2022-06-16 11:16:54 +01:00
committed by GitHub

View File

@@ -208,7 +208,7 @@ RED.palette = (function() {
}
function escapeCategory(category) {
return category.replace(/[ /.]/g,"_");
return category.replace(/[\x00-\x2c\x2e-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]/g,"_");
}
function addNodeType(nt,def) {
if (getPaletteNode(nt).length) {