Browse Source

HUE-8401 [editor] Remove escape character from variables.

jdesjean 7 years ago
parent
commit
6dcb47c274

+ 1 - 1
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -706,7 +706,7 @@ var EditorViewModel = (function() {
           while (matchList = reList.exec(match[2])) {
             var option = {text:matchList[2] || matchList[3], value:matchList[3] || matchList[1]};
             option.text = option.text && option.text.trim();
-            option.value = option.value && option.value.trim();
+            option.value = option.value && option.value.trim().replace('\,', ',').replace('\(', '(').replace('\)', ')');
 
             if (value.placeholder || matchList[2]) {
               if (!value.options) {