Skip to content

Commit

Permalink
remove blocking syntax error (warning fo js script) #299
Browse files Browse the repository at this point in the history
  • Loading branch information
abirEF committed Apr 25, 2024
1 parent cfda743 commit 791b292
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -289,11 +289,9 @@ function FormulaInterpreter(datanodesListModel, datanodeModel, datanodePlugins,
if (_.isNull(lines[i].match(patternRegex))) {
line = lines[i].replace(/(['"])(?:\\.|(?!\1)[^\\\n])*\1/g, ''); //remove strings
if (!_.isNull(line.match(/(chalkit|xDashApi)\.[^\s()]+\(/))) {
//Warning for chalkit js api
const text = 'Syntax error in chalkit API';
datanodeModel.statusCallback('Error', text);
datanodeModel.notificationCallback('error', datanodeModel.name(), text);
self.bCalculatedSettings = false;
return;
datanodeModel.notificationCallback('warning', datanodeModel.name(), text);
}
}
}
Expand Down

0 comments on commit 791b292

Please sign in to comment.