File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -210,7 +210,7 @@ class DynamicParserImpl {
210
210
211
211
parsePrimary () {
212
212
if (optionalCharacter ($LPAREN )) {
213
- var result = parseExpression ();
213
+ var result = parseFilter ();
214
214
expectCharacter ($RPAREN );
215
215
return result;
216
216
} else if (peek.isKeywordNull || peek.isKeywordUndefined) {
Original file line number Diff line number Diff line change @@ -987,6 +987,12 @@ main() {
987
987
expect (eval ("1|increment:2" , filters)).toEqual (3 );
988
988
});
989
989
990
+ it ('should evaluate grouped filters' , () {
991
+ context = {'name' : 'MISKO' };
992
+ expect (eval ('n = (name|lowercase)' , filters)).toEqual ('misko' );
993
+ expect (eval ('n' )).toEqual ('misko' );
994
+ });
995
+
990
996
it ('should parse filters' , () {
991
997
expect (() {
992
998
eval ("1|nonexistent" );
You can’t perform that action at this time.
0 commit comments