mirror of
https://github.com/FranP-code/shortly.git
synced 2025-10-13 00:43:28 +00:00
Update isUrl.ts
This commit is contained in:
committed by
GitHub
parent
70979fe3cb
commit
43dc1525aa
@@ -1,5 +1,5 @@
|
|||||||
import { isUrlRegex } from '../utils/constants'
|
import { isUrlRegex } from '../utils/constants'
|
||||||
|
|
||||||
export default function (url: string) {
|
export default function (url: string) {
|
||||||
return true
|
return !!isUrlRegex.test(url)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user