From 133ceea8a065c22a548d5b9e58a4cb340a32cb28 Mon Sep 17 00:00:00 2001 From: XLor Date: Sun, 9 Apr 2023 07:01:24 +0800 Subject: [PATCH] fix: script escape --- scripts/d1.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/d1.ts b/scripts/d1.ts index fcf76551..0d110c9c 100644 --- a/scripts/d1.ts +++ b/scripts/d1.ts @@ -66,7 +66,7 @@ cli.command('team', 'Generate team sql').action(async (option) => { cli.run(process.argv.slice(2)).catch((err) => console.error(err)); function escape(text: string) { - return text.replace(`'`, `''`); + return text.replace(/'/g, `''`); } async function readResources(root = 'chunk') {