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