Skip to content

Commit

Permalink
feat: be able to receive negative numbers on $randomNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
Raksit committed Aug 16, 2019
1 parent b877395 commit c8b03d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/lib/engine_util.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ function template(o, context, inPlace) {
if (!/{{/.test(o)) {
return o;
}
const funcCallRegex = /{{\s*(\$[A-Za-z0-9_]+\s*\(\s*[A-Za-z0-9_,\s]*\s*\))\s*}}/;
const funcCallRegex = /{{\s*(\$[A-Za-z0-9_]+\s*\(\s*[A-Za-z-\d_,\s]*\s*\))\s*}}/;
let match = o.match(funcCallRegex);
if (match) {
// This looks like it could be a function call:
Expand Down

0 comments on commit c8b03d8

Please sign in to comment.