Skip to content

Commit

Permalink
fix: Regex fix for queries with commas (#31)
Browse files Browse the repository at this point in the history
Fixes #24
  • Loading branch information
1A3Dev committed Sep 24, 2021
1 parent 634bbff commit 39c4856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patches/named-placeholders+1.1.2.patch
Expand Up @@ -7,7 +7,7 @@ index 527d723..f47b591 100644
// License: https://github.com/mscdex/node-mariasql/blob/master/LICENSE

-const RE_PARAM = /(?:\?)|(?::(\d+|(?:[a-zA-Z][a-zA-Z0-9_]*)))/g,
+const RE_PARAM = /(?:\?)|(?:[:,@](\d+|(?:[a-zA-Z][a-zA-Z0-9_]*)))/g,
+const RE_PARAM = /(?:\?)|(?:[:@](\d+|(?:[a-zA-Z][a-zA-Z0-9_]*)))/g,
DQUOTE = 34,
SQUOTE = 39,
BSLASH = 92;
Expand Down

0 comments on commit 39c4856

Please sign in to comment.