mirror of
https://github.com/exogen/t2-mapper.git
synced 2026-02-19 22:53:49 +00:00
parallelize script loads
This commit is contained in:
parent
9d3554de02
commit
2f23934de0
17 changed files with 561 additions and 68 deletions
|
|
@ -133,6 +133,12 @@ export class CaseInsensitiveSet {
|
|||
}
|
||||
}
|
||||
|
||||
export function normalizePath(path: string): string {
|
||||
return path.replace(/\\/g, "/").toLowerCase();
|
||||
/** Normalize path separators only (backslashes to forward slashes). */
|
||||
export function normalizeSlashes(path: string): string {
|
||||
return path.replace(/\\/g, "/");
|
||||
}
|
||||
|
||||
/** Normalize path for use as a cache key (slashes + lowercase). */
|
||||
export function normalizePath(path: string): string {
|
||||
return normalizeSlashes(path).toLowerCase();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue