diff --git a/src/utils/isUrl.ts b/src/utils/isUrl.ts index 7d686f9..1e64fa7 100644 --- a/src/utils/isUrl.ts +++ b/src/utils/isUrl.ts @@ -1,6 +1,6 @@ export const isUrl = (url: string): boolean => { const pattern = new RegExp( - '^(http://www.|https://www.|http://|https://)[a-z0-9]+([-.]{1}[a-z0-9]+)*.[a-z]{2,5}(:[0-9]{1,5})?(/.*)?$', + '^(http://|https://)[a-z0-9]+([-.]{1}[a-z0-9]+)*.[a-z]{2,5}(:[0-9]{1,5})?(/.*)?$', 'gi' )