Skip to content

Commit fa791a8

Browse files
committed
fix vuejs#438 arguments with non-identifier chars
1 parent 1e01c18 commit fa791a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/directive.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
var dirId = 1,
2-
ARG_RE = /^[\w\$-]+$/,
2+
ARG_RE = /^[^\{\?]+$/,
33
FILTER_TOKEN_RE = /[^\s'"]+|'[^']+'|"[^"]+"/g,
44
NESTING_RE = /^\$(parent|root)\./,
55
SINGLE_VAR_RE = /^[\w\.$]+$/,

0 commit comments

Comments
 (0)