Issue #1284 - Implement /s (dotAll) for regular expressions, v2.

Resolves #1284.
This commit is contained in:
wolfbeast 2019-11-18 16:50:40 +01:00 committed by Roy Tam
commit 8148cf0001
11 changed files with 117 additions and 23 deletions

View file

@ -5704,6 +5704,7 @@ JS_ObjectIsDate(JSContext* cx, JS::HandleObject obj, bool* isDate);
#define JSREG_MULTILINE 0x04u /* treat ^ and $ as begin and end of line */
#define JSREG_STICKY 0x08u /* only match starting at lastIndex */
#define JSREG_UNICODE 0x10u /* unicode */
#define JSREG_DOTALL 0x20u /* match . to everything including newlines */
extern JS_PUBLIC_API(JSObject*)
JS_NewRegExpObject(JSContext* cx, const char* bytes, size_t length, unsigned flags);