MCPcopy Create free account
hub / github.com/WebFreak001/code-debug / quote

Method quote

src/backend/mi2/mi2.ts:925–928  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

923 }
924
925 protected quote(text: string): string {
926 // only escape if text contains non-word or non-path characters such as whitespace or quotes
927 return /^-|[^\w\d\/_\-\.]/g.test(text) ? ('"' + escape(text) + '"') : text;
928 }
929
930 prettyPrint: boolean = true;
931 printCalls: boolean;

Callers 5

varCreateMethod · 0.95
varEvalExpressionMethod · 0.95
varListChildrenMethod · 0.95
varUpdateMethod · 0.95
varAssignMethod · 0.95

Calls 1

escapeFunction · 0.85

Tested by

no test coverage detected