mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-05-03 03:00:14 -04:00
let's make that non-greedy
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user