let's make that non-greedy

This commit is contained in:
Jeremy Ashkenas
2010-03-15 21:50:33 -07:00
parent 6ccf196b61
commit 3fed9761a6

View File

@@ -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