Skip to content

Commit

Permalink
fix escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
charredUtensil committed Jul 3, 2024
1 parent 483694f commit db39c0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/architects/utils/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ export function eventChain(name: string, ...rest: (`${string};` | Falsy)[]) {
}

export function escapeString(s: string) {
return s.replace(/"/g, '\\"');
return s.replace(/\\/g, "").replace(/"/g, '\\"');

Check failure

Code scanning / CodeQL

Incomplete string escaping or encoding High

This does not escape backslash characters in the input.
}

0 comments on commit db39c0d

Please sign in to comment.