mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-01-14 09:17:55 -05:00
fixing the regex lexer to make it less agressive when we know it can't possibly be a regex
This commit is contained in:
8
test/fixtures/execution/test_literals.coffee
vendored
8
test/fixtures/execution/test_literals.coffee
vendored
@@ -1,3 +1,9 @@
|
||||
a: [(x => x), (x => x * x)]
|
||||
|
||||
print(a.length is 2)
|
||||
print(a.length is 2)
|
||||
|
||||
|
||||
regex: /match/i
|
||||
words: "I think there is a match in here."
|
||||
|
||||
print(!!words.match(regex))
|
||||
Reference in New Issue
Block a user