We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ce2b3d commit 589bb8fCopy full SHA for 589bb8f
src/directive.js
@@ -1,5 +1,5 @@
1
var dirId = 1,
2
- ARG_RE = /^[\w-]+$/,
+ ARG_RE = /^[\w\$-]+$/,
3
FILTER_TOKEN_RE = /[^\s'"]+|'[^']+'|"[^"]+"/g,
4
NESTING_RE = /^\$(parent|root)\./,
5
SINGLE_VAR_RE = /^[\w\.$]+$/,
@@ -165,7 +165,7 @@ Directive.parse = function (str) {
165
argIndex = i + 1
166
dir.arg = str.slice(begin, i).trim()
167
}
168
- } else if (c === '|' && str.charAt(i + 1) !== '|') {
+ } else if (c === '|' && str.charAt(i + 1) !== '|' && str.charAt(i - 1) !== '|') {
169
if (dir.key === undefined) {
170
// first filter, end of key
171
lastFilterIndex = i + 1
0 commit comments