MCPcopy Create free account
hub / github.com/Dart-Code/Dart-Code / escapeDartString

Function escapeDartString

src/shared/utils.ts:219–221  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

217}
218
219export function escapeDartString(input: string) {
220 return input.replace(/(['"\\])/g, "\\$1");
221}
222
223export function isWebDevice(deviceId: string | undefined): boolean {
224 return !!(deviceId?.startsWith("web") || deviceId === "chrome" || deviceId === "edge");

Callers 2

util.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected