Skip to content

Commit 8e2d06a

Browse files
committed
Fix for readTransaction allows modification if starting with extra semicolon.
1 parent 38f5386 commit 8e2d06a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sqlite.core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var DB_STATE_INIT, DB_STATE_OPEN, READ_ONLY_REGEX, SQLiteFactory, SQLitePlugin,
1818

1919
var plugin = {};
2020

21-
READ_ONLY_REGEX = /^\s*(?:drop|delete|insert|update|create)\s/i;
21+
READ_ONLY_REGEX = /^(\s|;)*(?:drop|delete|insert|update|create)\s/i;
2222

2323
DB_STATE_INIT = "INIT";
2424

0 commit comments

Comments
 (0)