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 a3bffcd commit 26c6ffbCopy full SHA for 26c6ffb
src/integrations/notifications/index.ts
@@ -78,11 +78,12 @@ export async function showSystemNotification(options: NotificationOptions): Prom
78
throw new Error("Message is required")
79
}
80
81
+ const escape = (str: string = "") => str.replace(/\\/g, "\\\\").replace(/"/g, '\\"')
82
const escapedOptions = {
83
...options,
- title: title.replace(/"/g, '\\"'),
84
- message: message.replace(/"/g, '\\"'),
85
- subtitle: options.subtitle?.replace(/"/g, '\\"') || "",
+ title: escape(title),
+ message: escape(message),
86
+ subtitle: escape(options.subtitle),
87
88
89
switch (platform()) {
0 commit comments