MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / escapeString

Function escapeString

src/LuaPrinter.ts:26–26  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

24};
25
26export const escapeString = (value: string) => `"${value.replace(escapeStringRegExp, char => escapeStringMap[char])}"`;
27
28export const tstlHeader = "--[[ Generated with https://github.com/TypeScriptToLua/TypeScriptToLua ]]\n";
29

Callers 2

createModulePathFunction · 0.90
printStringLiteralMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected