MCPcopy Index your code
hub / github.com/prettydiff/prettydiff / noTab

Function noTab

api/diffview.ts:379–391  ·  view source on GitHub ↗
(str : string[])

Source from the content-addressed store, hash-verified

377 clidata: string[] = [],
378 tabFix: RegExp = new RegExp(`^((${tab.replace(/\\/g, "\\")})+)`),
379 noTab = function diffview_report_noTab(str : string[]): string[]{
380 let b: number = 0;
381 const strLen: number = str.length,
382 output: string[] = [];
383 if (strLen < 1) {
384 return output;
385 }
386 do {
387 output.push(str[b].replace(tabFix, ""));
388 b = b + 1;
389 } while (b < strLen);
390 return output;
391 },
392 htmlfix = function diffview_report_htmlfix(item:string): string {
393 return item
394 .replace(/&/g, "&amp;")

Callers 1

diffviewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected