coffeescript-idea icon indicating copy to clipboard operation
coffeescript-idea copied to clipboard

Can't pass regex as argument unless brackets are used (which aren't actually required)

Open PandaWood opened this issue 14 years ago • 0 comments

This doesn't work (but should) - that is, the coloring goes awry matches = storyText.match /{.?,.?}/g

This is the workaround (to add brackets) matches = storyText.match(/{.?,.?}/g)

PandaWood avatar Dec 27 '10 12:12 PandaWood