Skip to content
Snippets Groups Projects
Verified Commit f0d67b01 authored by Stéphane Adjemian's avatar Stéphane Adjemian
Browse files

Honour bi-annual dates in mod file.

parent 55810524
Branches
No related tags found
No related merge requests found
...@@ -48,7 +48,7 @@ void ...@@ -48,7 +48,7 @@ void
NativeStatement::writeOutput(ostream &output, const string &basename, bool minimal_workspace) const NativeStatement::writeOutput(ostream &output, const string &basename, bool minimal_workspace) const
{ {
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]|[SsHh][1-2])))";
sregex regex_lookbehind = sregex::compile(R"((?<!\$|\d|[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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment