Эх сурвалжийг харах

HUE-7393 [editor] dash is not recognized in variables

jdesjean 8 жил өмнө
parent
commit
60a1618

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

@@ -617,7 +617,7 @@ var EditorViewModel = (function() {
       if (self.type() == 'pig') {
         matches = self.getPigParameters();
       } else {
-        var re = /(?:^|\W)\${(\w*)\=?([\w\s]*)}/g;
+        var re = /(?:^|\W)\${(\w*)\=?([^}]*)}/g;
         var reComment = /(^\s*--.*)|(\/\*[\s\S]*?\*\/)/gm;
         var statement = self.statement_raw();
         var matchComment = reComment.exec(statement);