Skip to content

Commit

Permalink
fix: script escape
Browse files Browse the repository at this point in the history
  • Loading branch information
yjl9903 committed Apr 8, 2023
1 parent 457fb87 commit 133ceea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/d1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down

0 comments on commit 133ceea

Please sign in to comment.