removeLeadingForwardSlashWindows() — astro Function Reference
Architecture documentation for the removeLeadingForwardSlashWindows() function in path.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD dd0ef41e_c140_f8be_a7fe_086c70a0d09d["removeLeadingForwardSlashWindows()"] f5377c99_3ce3_1abd_148f_93394ff5efe2["path.ts"] dd0ef41e_c140_f8be_a7fe_086c70a0d09d -->|defined in| f5377c99_3ce3_1abd_148f_93394ff5efe2 style dd0ef41e_c140_f8be_a7fe_086c70a0d09d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/internal-helpers/src/path.ts lines 35–37
export function removeLeadingForwardSlashWindows(path: string) {
return path.startsWith('/') && path[2] === ':' ? path.substring(1) : path;
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does removeLeadingForwardSlashWindows() do?
removeLeadingForwardSlashWindows() is a function in the astro codebase, defined in packages/internal-helpers/src/path.ts.
Where is removeLeadingForwardSlashWindows() defined?
removeLeadingForwardSlashWindows() is defined in packages/internal-helpers/src/path.ts at line 35.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free