MCPcopy Index your code
hub / github.com/microsoft/vscode-cpptools / splitLines

Function splitLines

Extension/src/common.ts:1486–1488  ·  view source on GitHub ↗
(data: string)

Source from the content-addressed store, hash-verified

1484}
1485
1486export function splitLines(data: string): string[] {
1487 return data.split(/\r?\n/g);
1488}
1489
1490export function escapeStringForRegex(str: string): string {
1491 return str.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, '\\$1');

Callers 1

lastNonemptyLineFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected