Skip to content

Commit

Permalink
fix(scripts/release): quote properly
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Oct 23, 2024
1 parent e8ef6fe commit cc398d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/release/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const commitAndPR = async (
* @param str string to quote
* @returns quoted string
*/
const quote = (str: string) => `'${str.replace(/'/g, "\\'")}'`;
const quote = (str: string) => `'${str.replaceAll("'", "'\"'\"'")}'`;

exec(`
git switch main
Expand Down

0 comments on commit cc398d1

Please sign in to comment.