Skip to content

Commit

Permalink
Minor improvement on generateRE_parse1v2
Browse files Browse the repository at this point in the history
  • Loading branch information
renecannao committed Sep 6, 2023
1 parent 18d8e69 commit 7f75053
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/set_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,10 @@ void SetParser::generateRE_parse1v2() {
var_patterns.push_back(vp);
vp = "\\w+"; // single word
var_patterns.push_back(vp);
vp = "\\w+"; // single word
var_patterns.push_back(vp);
vp = "\\w+(?:-\\w+)+"; // multiple words separated by dash, WITHOUT any spaces between words . Used for transaction isolation
var_patterns.push_back(vp);
for (auto it = quote_symbol.begin(); it != quote_symbol.end(); it++) {
string s = *it + vp + *it;
var_patterns.push_back(s); // add with quote
Expand Down

0 comments on commit 7f75053

Please sign in to comment.