Skip to content
Snippets Groups Projects
Verified Commit b87cfff2 authored by Houtan Bastani's avatar Houtan Bastani Committed by Sébastien Villemot
Browse files

fix bug introduced in a778ba4a

(cherry picked from commit a3fb2b12)
parent b1905dd5
No related branches found
No related tags found
No related merge requests found
Pipeline #3227 passed
...@@ -54,7 +54,7 @@ NativeStatement::writeOutput(ostream &output, const string &basename, bool minim ...@@ -54,7 +54,7 @@ NativeStatement::writeOutput(ostream &output, const string &basename, bool minim
{ {
using namespace boost::xpressive; using namespace boost::xpressive;
string date_regex = R"((-?\d+([YyAa]|[Mm]([1-9]|1[0-2])|[Qq][1-4])))"; string date_regex = R"((-?\d+([YyAa]|[Mm]([1-9]|1[0-2])|[Qq][1-4])))";
sregex regex_lookbehind = sregex::compile(R"((?<!\$|[a-zA-Z_]|-|'))" + date_regex); sregex regex_lookbehind = sregex::compile(R"((?<!\$|\d|[a-zA-Z_]|-|'))" + date_regex);
sregex regex_dollar = sregex::compile(R"((\$))" + date_regex); sregex regex_dollar = sregex::compile(R"((\$))" + date_regex);
string ns = regex_replace(native_statement, regex_lookbehind, "dates('$&')"); string ns = regex_replace(native_statement, regex_lookbehind, "dates('$&')");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment