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

Function arrays

services.ts:3482–3501  ·  view source on GitHub ↗
(arr:string[])

Source from the content-addressed store, hash-verified

3480 if (options.read_method === "subdirectory") {
3481 const sanitize = function node_apps_readmethod_resolve_stat_resolveItem_callbackDiff_sanitize(item_type:"source"|"diff", string_purge:string):void {
3482 const arrays = function node_apps_readmethod_resolve_stat_resolveItem_callbackDiff_sanitize_arrays(arr:string[]):void {
3483 let c:number = 0,
3484 d:number = -1,
3485 flen:number = arr.length;
3486 if (flen < 1) {
3487 return;
3488 }
3489 do {
3490 if (d < 0 && arr[c].indexOf(string_purge) === 0) {
3491 d = c;
3492 } else if (d > -1 && arr[c].indexOf(string_purge) !== 0) {
3493 arr.splice(d, c - d);
3494 return;
3495 }
3496 c = c + 1;
3497 } while (c < flen);
3498 if (d > 0) {
3499 arr.splice(d, c - d);
3500 }
3501 };
3502 arrays(files[item_type]);
3503 arrays(links[item_type]);
3504 };

Callers 1

sanitizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected