mirror of
https://github.com/langgenius/dify.git
synced 2025-07-23 09:32:36 +00:00
4 lines
141 B
TypeScript
4 lines
141 B
TypeScript
![]() |
export const isValidUrl = (url: string): boolean => {
|
||
|
return ['http:', 'https:', '//', 'mailto:'].some(prefix => url.startsWith(prefix))
|
||
|
}
|