Skip to content

Commit 96250ca

Browse files
apolinariomishig25
andauthored
Update packages/tasks/src/model-libraries-snippets.ts
Co-authored-by: Mishig <[email protected]>
1 parent 7dba714 commit 96250ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/tasks/src/model-libraries-snippets.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function nameWithoutNamespace(modelId: string): string {
99
return splitted.length === 1 ? splitted[0] : splitted[1];
1010
}
1111

12-
const escapeQuotes = (str: string | undefined): string | undefined => str?.replace(/"/g, '\\"');
12+
const escapeQuotes = (str: string): string => JSON.stringify(str);
1313

1414
//#region snippets
1515

0 commit comments

Comments
 (0)