Skip to content

Commit c391a0c

Browse files
vicbmhevery
authored andcommitted
fix(parser/eval): fix for '"s" + ("m"|filter) + "e"'
closes dart-archive#755
1 parent 66cda20 commit c391a0c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

bin/parser_generator_for_spec.dart

+1
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ main(arguments) {
175175
'add(a,b)',
176176
'notAProperty',
177177
"'Foo'|uppercase",
178+
"'f' + ('o'|uppercase) + 'o'",
178179
"1|increment:2",
179180
"'abcd'|substring:1:offset",
180181
"'abcd'|substring:1:3|uppercase",

test/core/parser/parser_spec.dart

+1
Original file line numberDiff line numberDiff line change
@@ -980,6 +980,7 @@ main() {
980980
describe('filters', () {
981981
it('should call a filter', () {
982982
expect(eval("'Foo'|uppercase", filters)).toEqual("FOO");
983+
expect(eval("'f' + ('o'|uppercase) + 'o'", filters)).toEqual("fOo");
983984
expect(eval("'fOo'|uppercase|lowercase", filters)).toEqual("foo");
984985
});
985986

0 commit comments

Comments
 (0)