Skip to content

Commit

Permalink
changed replaceAll() to replace()
Browse files Browse the repository at this point in the history
  • Loading branch information
demmings committed Oct 14, 2022
1 parent 194b4fa commit cc2590a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions coverage/tests.lcov
Original file line number Diff line number Diff line change
Expand Up @@ -2864,8 +2864,8 @@ DA:225,1
DA:226,1
DA:227,1
DA:228,1
DA:229,1169746
DA:230,1169746
DA:229,1211013
DA:230,1211013
DA:231,1
DA:232,1
DA:233,1
Expand Down Expand Up @@ -5640,7 +5640,7 @@ BRDA:213,51,0,6
BRDA:215,52,0,0
BRDA:217,53,0,1
BRDA:224,54,0,1
BRDA:228,55,0,1169746
BRDA:228,55,0,1211013
BRDA:236,56,0,132
BRDA:269,57,0,23
BRDA:298,58,0,54
Expand Down
2 changes: 1 addition & 1 deletion src/SimpleParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -845,7 +845,7 @@ function sqlCondition2JsCondition(cond) {

class SelectKeywordAnalysis {
static analyze(itemName, part) {
const keyWord = itemName.toUpperCase().replaceAll(' ', '_');
const keyWord = itemName.toUpperCase().replace(/[" "]/g, "_");

if (typeof SelectKeywordAnalysis[keyWord] === 'undefined') {
throw new Error(`Can't analyze statement ${itemName}`);
Expand Down

0 comments on commit cc2590a

Please sign in to comment.