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

Method sanitize

src/test/debug_client_ms.ts:110–110  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

108 } else {
109 this._adapterProcess = cp.spawn(this._runtime!, [this._executable!, ...(this._args || [])], this._spawnOptions);
110 const sanitize = (s: string) => s.toString().replace(/\r?\n$/mg, '');
111 this._adapterProcess.stderr!.on('data', (data: string) => {
112 if (this._enableStderr) {
113 data = sanitize(data).trim();

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected