From ae6345111319153bd4231e56433471d682fc922e Mon Sep 17 00:00:00 2001 From: krypton36 Date: Fri, 18 Mar 2022 23:02:25 -0700 Subject: [PATCH] Remove special characters from functiona names in code gen (#16386) --- src/app/zap-templates/templates/app/helper.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/zap-templates/templates/app/helper.js b/src/app/zap-templates/templates/app/helper.js index c84b5ae2323ef8..e3090f152bf971 100644 --- a/src/app/zap-templates/templates/app/helper.js +++ b/src/app/zap-templates/templates/app/helper.js @@ -438,13 +438,13 @@ function asLowerCamelCase(label) && label.toUpperCase() != label) { str = str[0].toUpperCase() + str.substring(1); } - return str.replace(/[\.:]/g, ''); + return str.replace(/[^A-Za-z0-9_]/g, ''); } function asUpperCamelCase(label) { let str = string.toCamelCase(label, false); - return str.replace(/[\.:]/g, ''); + return str.replace(/[^A-Za-z0-9_]/g, ''); } function asMEI(prefix, suffix)