checkPrefix() — astro Function Reference
Architecture documentation for the checkPrefix() function in glob.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD d5a6d3a0_3ed6_da29_dad2_4da0193bd502["checkPrefix()"] 6e7c310e_d293_0d26_5ed9_d09724209fd3["glob.ts"] d5a6d3a0_3ed6_da29_dad2_4da0193bd502 -->|defined in| 6e7c310e_d293_0d26_5ed9_d09724209fd3 dad9d71c_4a14_b07e_4d93_8466d0ba52b2["glob()"] dad9d71c_4a14_b07e_4d93_8466d0ba52b2 -->|calls| d5a6d3a0_3ed6_da29_dad2_4da0193bd502 style d5a6d3a0_3ed6_da29_dad2_4da0193bd502 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/content/loaders/glob.ts lines 63–68
function checkPrefix(pattern: string | Array<string>, prefix: string) {
if (Array.isArray(pattern)) {
return pattern.some((p) => p.startsWith(prefix));
}
return pattern.startsWith(prefix);
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does checkPrefix() do?
checkPrefix() is a function in the astro codebase, defined in packages/astro/src/content/loaders/glob.ts.
Where is checkPrefix() defined?
checkPrefix() is defined in packages/astro/src/content/loaders/glob.ts at line 63.
What calls checkPrefix()?
checkPrefix() is called by 1 function(s): glob.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free