diff options
Diffstat (limited to 'spec/parser.js')
-rw-r--r-- | spec/parser.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/parser.js b/spec/parser.js index 3b7e3e4..4527d19 100644 --- a/spec/parser.js +++ b/spec/parser.js @@ -39,6 +39,12 @@ describe('parser', function() { it('parses mustaches with - in a path', function() { equals(astFor('{{foo-bar}}'), '{{ PATH:foo-bar [] }}\n'); }); + it('parses mustaches with escaped [] in a path', function() { + equals(astFor('{{[foo[\\]]}}'), '{{ PATH:foo[] [] }}\n'); + }); + it('parses escaped \\\\ in path', function() { + equals(astFor('{{[foo\\\\]}}'), '{{ PATH:foo\\ [] }}\n'); + }); it('parses mustaches with parameters', function() { equals(astFor('{{foo bar}}'), '{{ PATH:foo [PATH:bar] }}\n'); |