MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / escapeAppleScript

Function escapeAppleScript

src/utils/notify.ts:30–32  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

28 * literal but we collapse them so the notification stays one tidy line.
29 */
30export function escapeAppleScript(s: string): string {
31 return s.replace(/\\/g, '\\\\').replace(/"/g, '\\"').replace(/\s*\n\s*/g, ' ').trim();
32}
33
34/**
35 * Show a desktop notification. Fire-and-forget: returns immediately, resolves

Callers 1

notifyDesktopFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected