mirror of
https://github.com/FranP-code/shortly.git
synced 2025-10-13 00:43:28 +00:00
first working prototype of shortly
This commit is contained in:
5
src/scripts/isUrl.ts
Normal file
5
src/scripts/isUrl.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { isUrlRegex } from '../utils/constants'
|
||||
|
||||
export default function (url: string) {
|
||||
return !!isUrlRegex.test(url)
|
||||
}
|
||||
Reference in New Issue
Block a user