Skip to content

Commit 724f55b

Browse files
Potential fix for code scanning alert no. 3: Incomplete string escaping or encoding
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Signed-off-by: 张喜昌 <68778073+ZhangXiChang@users.noreply.github.com>
1 parent 37001db commit 724f55b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/generate_schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const schema_sql = db
77
"SELECT sql FROM sqlite_schema WHERE name NOT LIKE 'sqlite_%' AND name NOT LIKE 'sqlean_%'",
88
)
99
.all(null)
10-
.map((value) => value.sql.replace(/(")/, "IF NOT EXISTS $1") + ";");
10+
.map((value) => value.sql.replace(/(")/g, "IF NOT EXISTS $1") + ";");
1111
db.close();
1212
await Bun.file(db_path).delete();
1313
await Bun.write("public/schema.sql", schema_sql.join("\n") + "\n");

0 commit comments

Comments
 (0)