mirror of
https://github.com/jashkenas/coffeescript.git
synced 2022-11-09 12:23:24 -05:00
47c491ffa1
* Support ES2018 regex dotall flag * Test in Node 9 * Alphabetize regex flags * Split regex dotall test into its own file, use new feature detection method of loading it * Update docs to explain compatibility for ES2018 and newer Node features * Remove unnecessary paragraph
7 lines
333 B
CoffeeScript
7 lines
333 B
CoffeeScript
# Regex “dotall” flag, or `s`, is only supported in Node 9+, so put tests for
|
|
# the feature in their own file. The feature detection in `Cakefile` that
|
|
# causes this test to load is adapted from
|
|
# https://github.com/tc39/proposal-regexp-dotall-flag#proposed-solution.
|
|
|
|
test "dotall flag", ->
|
|
doesNotThrow -> /a.b/s.test 'a\nb'
|