diff --git a/String/ValidateUrl.js b/String/ValidateUrl.js deleted file mode 100644 index cfcbd43666..0000000000 --- a/String/ValidateUrl.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * @function ValidateURL - * @description validate the URL. - * @param {String} url - The input URL string - * @return {Boolean} - */ -const validateURL = (url) => { - const URL_PATTERN = /^(https?:\/\/(?:www\.|(?!www))[^\s.]+\.[^\s]{2,}|www\.[^\s]+\.[^\s]{2,})$/gi - - return URL_PATTERN.test(url) -} - -export { validateURL }