From 0f2829097b85db80326e5e752b360959e7d3f043 Mon Sep 17 00:00:00 2001 From: Kazuhito Yokoi Date: Sat, 10 Sep 2022 12:17:18 +0900 Subject: [PATCH] Remove dot from variable name for external module in function node --- .../node_modules/@node-red/nodes/core/function/10-function.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/node_modules/@node-red/nodes/core/function/10-function.html b/packages/node_modules/@node-red/nodes/core/function/10-function.html index 48e46da13..6e59aa1e2 100644 --- a/packages/node_modules/@node-red/nodes/core/function/10-function.html +++ b/packages/node_modules/@node-red/nodes/core/function/10-function.html @@ -294,7 +294,7 @@ if (val === "_custom_") { val = $(this).val(); } - var varName = val.trim().replace(/^@/,"").replace(/@.*$/,"").replace(/[-_/].?/g, function(v) { return v[1]?v[1].toUpperCase():"" }); + var varName = val.trim().replace(/^@/,"").replace(/@.*$/,"").replace(/[-_/\.].?/g, function(v) { return v[1]?v[1].toUpperCase():"" }); fvar.val(varName); fvar.trigger("change");