mirror of
https://github.com/langgenius/dify.git
synced 2025-07-05 08:07:10 +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))
|
||
|
}
|