Skip to content

Commit 0da5e9e

Browse files
author
Daniele Briggi
committed
fix: typo
1 parent b029a0f commit 0da5e9e

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
bun install
2+
bun install --production
23
bun .husky/pre-commit.js
34
git add package.json
45
git add bun.lockb

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/drivers/utilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export function sanitizeSQLiteIdentifier(identifier: any): string {
9696
}
9797

9898
// escape double quotes
99-
const escaped = trimmed.replace(/"/g, '"')
99+
const escaped = trimmed.replace(/"/g, '\"')
100100

101101
// Wrap in double quotes for safety
102102
return `"${escaped}"`

test/database.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import { SQLiteCloudRowset, SQLiteCloudRow, SQLiteCloudError, sanitizeSQLiteIdentifier } from '../src/index'
66
import { getTestingDatabase, getTestingDatabaseAsync, getChinookDatabase, removeDatabase, removeDatabaseAsync, LONG_TIMEOUT } from './shared'
77
import { RowCountCallback } from '../src/drivers/types'
8+
import { expect, describe, it } from '@jest/globals'
89

910
//
1011
// utility methods to setup and destroy temporary test databases

0 commit comments

Comments
 (0)