isUrl() — ui Function Reference
Architecture documentation for the isUrl() function in search.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD 8c55f1b9_54df_6127_7749_6c47a9f920bb["isUrl()"] 97050a69_2c4b_4c20_ca72_89be3ec705bd["search.ts"] 8c55f1b9_54df_6127_7749_6c47a9f920bb -->|defined in| 97050a69_2c4b_4c20_ca72_89be3ec705bd 52d1915f_aae4_92b3_79b0_94994822dd9e["buildRegistryItemNameFromRegistry()"] 52d1915f_aae4_92b3_79b0_94994822dd9e -->|calls| 8c55f1b9_54df_6127_7749_6c47a9f920bb style 8c55f1b9_54df_6127_7749_6c47a9f920bb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/shadcn/src/registry/search.ts lines 107–114
function isUrl(string: string): boolean {
try {
new URL(string)
return true
} catch {
return false
}
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does isUrl() do?
isUrl() is a function in the ui codebase, defined in packages/shadcn/src/registry/search.ts.
Where is isUrl() defined?
isUrl() is defined in packages/shadcn/src/registry/search.ts at line 107.
What calls isUrl()?
isUrl() is called by 1 function(s): buildRegistryItemNameFromRegistry.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free