summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/regex__FFI.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regex__FFI.cc b/src/regex__FFI.cc
index b4a2297..66e25a8 100644
--- a/src/regex__FFI.cc
+++ b/src/regex__FFI.cc
@@ -110,7 +110,7 @@ uw_Regex__FFI_match uw_Regex__FFI_do_match(uw_context* const context,
const uw_Basis_string haystack) {
std::regex needle;
try {
- needle.assign(needle_string, std::regex_constants::extended);
+ needle.assign(needle_string, std::regex_constants::ECMAScript);
} catch (const std::regex_error& e) {
switch (e.code()) {
case std::regex_constants::error_space: