Regular expressions s (dotAll) flag (#4880)

* 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
This commit is contained in:
Geoffrey Booth
2018-03-30 15:25:41 -07:00
committed by GitHub
parent 195a46ab77
commit 47c491ffa1
7 changed files with 18 additions and 5 deletions

View File

@@ -1261,7 +1261,7 @@ REGEX = /// ^
///
REGEX_FLAGS = /^\w*/
VALID_FLAGS = /^(?!.*(.).*\1)[imguy]*$/
VALID_FLAGS = /^(?!.*(.).*\1)[gimsuy]*$/
HEREGEX = /// ^
(?: