summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@mit.edu>2015-07-30 16:55:49 -0400
committerGravatar Benjamin Barenblat <bbaren@mit.edu>2015-07-30 16:55:49 -0400
commitc5e30927d8dbc85c20a261cab2c7afb208f2e543 (patch)
tree61748cf61d17ed135a16d3d21b407bbe0e2f383e
parentaa05cf6073cf2a6dfa46108cd5522c0171a7f1c3 (diff)
Update C++ to use ECMAScript regular expressions
That’s what the browser uses, so use it on the server side for consistency.
-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: