Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
d3111863
Commit
d3111863
authored
Oct 03, 2013
by
Houtan Bastani
Browse files
fix regular expression
parent
0cac8a2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
preprocessor/Statement.cc
View file @
d3111863
...
...
@@ -102,7 +102,7 @@ NativeStatement::computingPass()
bool
skip
=
false
;
string
newstr
=
""
;
int
lastidx
=
0
;
sregex
date_expr
=
sregex
::
compile
(
"-?[0-9]+[Mm](
[1-9]|1[0-2
])|-?[0-9]+[Qq][1-4]|-?[0-9]+[Ww]([1-
9]{1}|[1-
4][0-9]|5[0-2])"
);
sregex
date_expr
=
sregex
::
compile
(
"-?[0-9]+[Mm](
1[0-2]|[1-9
])|-?[0-9]+[Qq][1-4]|-?[0-9]+[Ww]([1-4][0-9]|5[0-2]
|[1-9]
)"
);
string
format
(
"dynDate('$&')"
);
for
(
size_t
i
=
0
;
i
<
apostrophes
.
size
();
i
++
)
if
(
apostrophes
[
i
]
==
0
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment