From c5e30927d8dbc85c20a261cab2c7afb208f2e543 Mon Sep 17 00:00:00 2001 From: Benjamin Barenblat Date: Thu, 30 Jul 2015 16:55:49 -0400 Subject: Update C++ to use ECMAScript regular expressions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit That’s what the browser uses, so use it on the server side for consistency. --- src/regex__FFI.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- cgit v1.2.3