diff --git a/package-lock.json b/package-lock.json index 9721e64..6fd8ef8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@themost/sqlite", - "version": "2.8.3", + "version": "2.8.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@themost/sqlite", - "version": "2.8.3", + "version": "2.8.4", "hasInstallScript": true, "license": "BSD-3-Clause", "dependencies": { @@ -2156,9 +2156,9 @@ } }, "node_modules/@eslint/plugin-kit": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.2.tgz", - "integrity": "sha512-CXtq5nR4Su+2I47WPOlWud98Y5Lv8Kyxp2ukhgFx/eW6Blm18VXJO5WuQylPugRo8nbluoi6GvvxBLqHcvqUUw==", + "version": "0.2.4", + "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.2.4.tgz", + "integrity": "sha512-zSkKow6H5Kdm0ZUQUB2kV5JIXqoG0+uH5YADhaEHswm664N9Db8dXSi0nMJpacpMf+MyyglF1vnZohpEg5yUtg==", "dev": true, "license": "Apache-2.0", "dependencies": { @@ -4737,10 +4737,11 @@ } }, "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, + "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", diff --git a/package.json b/package.json index aab1792..617b697 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/SqliteFormatter.js b/src/SqliteFormatter.js index 9d964b5..1977264 100644 --- a/src/SqliteFormatter.js +++ b/src/SqliteFormatter.js @@ -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);