From 3fed9761a63c849b583510ea4c43fb2fe926dfbe Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Mon, 15 Mar 2010 21:50:33 -0700 Subject: [PATCH] let's make that non-greedy --- test/test_compilation.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_compilation.coffee b/test/test_compilation.coffee index daf4db78..1dd40110 100644 --- a/test/test_compilation.coffee +++ b/test/test_compilation.coffee @@ -45,7 +45,7 @@ class WordArrayNode extends BaseNode "[$strings]" CoffeeScript.extend -> - return false unless words: @chunk.match(/^%w\{(.*)\}/) + return false unless words: @chunk.match(/^%w\{(.*?)\}/) @i += words[0].length @token 'EXTENSION', new WordArrayNode(words[1].split(/\s+/)) true