Skip to content

Commit

Permalink
In regex don't try to match sub-expressions and optimize it.
Browse files Browse the repository at this point in the history
Should improve performance a bit #3.
eldering committed Oct 21, 2018
1 parent 62119e5 commit 91ea4da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libchecktestdata.cc
Original file line number Diff line number Diff line change
@@ -1041,7 +1041,7 @@ void checktoken(const command& cmd)

else if ( cmd.name()=="REGEX" ) {
string str = eval(cmd.args[0]).getstr();
regex regexstr(str,regex::extended);
regex regexstr(str,regex::extended|regex::nosubs|regex::optimize);
smatch res;
string matchstr;

0 comments on commit 91ea4da

Please sign in to comment.