Permalink
Browse files
More loosely match expression function names
- Loading branch information...
Showing
with
1 addition
and 1 deletion.
-
+1
−1
src/standard/effectBuilder.html
|
|
@@ -169,7 +169,7 @@ |
|
|
// method expressions are of the form: `name([arg1, arg2, .... argn])`
|
|
|
_parseMethod: function(expression) {
|
|
|
// tries to match valid javascript property names
|
|
|
- var m = expression.match(/([a-zA-Z_$][0-9a-zA-Z_$]*)\((.*)\)/);
|
|
|
+ var m = expression.match(/([^\s]+)\((.*)\)/);
|
|
|
if (m) {
|
|
|
var sig = { method: m[1], static: true };
|
|
|
if (m[2].trim()) {
|
|
|
|
0 comments on commit
6cfa759