We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7dba714 commit 96250caCopy full SHA for 96250ca
packages/tasks/src/model-libraries-snippets.ts
@@ -9,7 +9,7 @@ function nameWithoutNamespace(modelId: string): string {
9
return splitted.length === 1 ? splitted[0] : splitted[1];
10
}
11
12
-const escapeQuotes = (str: string | undefined): string | undefined => str?.replace(/"/g, '\\"');
+const escapeQuotes = (str: string): string => JSON.stringify(str);
13
14
//#region snippets
15
0 commit comments