summaryrefslogtreecommitdiff
path: root/js/src/jsapi.h
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-11-18 16:50:40 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-11-18 16:50:40 +0100
commite6355a083316cb64426b118c2a78dcba3d8e6edd (patch)
tree4c79ac5ab8d11c15375c42867f9c47f575c5e54f /js/src/jsapi.h
parent8ed0b19a0328af0a662b2c8e01b4489bf038dc6e (diff)
downloaduxp-e6355a083316cb64426b118c2a78dcba3d8e6edd.tar.gz
Issue mcp-graveyard/UXP#1284 - Implement /s (dotAll) for regular expressions, v2.
Resolves #1284.
Diffstat (limited to 'js/src/jsapi.h')
-rw-r--r--js/src/jsapi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/src/jsapi.h b/js/src/jsapi.h
index dc00c650d4..1a69b15139 100644
--- a/js/src/jsapi.h
+++ b/js/src/jsapi.h
@@ -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);