Skip to content

Commit dd7b1eb

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

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
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

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)