Skip to content

Commit

Permalink
unescape double quotes (#100)
Browse files Browse the repository at this point in the history
* unescape double quotes

* 2.8.4
  • Loading branch information
kbarbounakis authored Dec 19, 2024
1 parent 8d9e03c commit fa98f7f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
17 changes: 9 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@themost/sqlite",
"version": "2.8.3",
"version": "2.8.4",
"description": "MOST Web Framework SQLite Adapter",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
5 changes: 2 additions & 3 deletions src/SqliteFormatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,8 @@ class SqliteFormatter extends SqlFormatter {
if (REGEXP_SINGLE_QUOTE.test(res))
//escape single quote (that is already escaped)
res = res.replace(/\\'/g, SINGLE_QUOTE_ESCAPE);
if (REGEXP_DOUBLE_QUOTE.test(res))
//escape double quote (that is already escaped)
res = res.replace(/\\"/g, DOUBLE_QUOTE_ESCAPE);
//escape double quote (that is already escaped)
res = res.replace(/\\"/g, DOUBLE_QUOTE_ESCAPE);
if (REGEXP_SLASH.test(res))
//escape slash (that is already escaped)
res = res.replace(/\\\\/g, SLASH_ESCAPE);
Expand Down

0 comments on commit fa98f7f

Please sign in to comment.