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 8, 2023
1 parent 7f75053 commit 454ab61
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/set_parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,11 @@ void SetParser::generateRE_parse1v2() {

string vp = "NULL"; // NULL
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
//vp = "\\w+"; // single word
//var_patterns.push_back(vp);
//vp = "(?:\\w|\\d)+"; // single word with letters and digits , for example utf8mb4 and latin1
//var_patterns.push_back(vp);
vp = "(?:\\w|\\d)+(?:-|\\w|\\d+)*"; // multiple words (letters and digits) separated by dash, WITHOUT any spaces between words . Used ialso for transaction isolation
var_patterns.push_back(vp);
for (auto it = quote_symbol.begin(); it != quote_symbol.end(); it++) {
string s = *it + vp + *it;
Expand Down

0 comments on commit 454ab61

Please sign in to comment.