diff --git a/libs/dfts-helper/src/lib/helper/string/url/url.ts b/libs/dfts-helper/src/lib/helper/string/url/url.ts index 3188f33d..6623e001 100644 --- a/libs/dfts-helper/src/lib/helper/string/url/url.ts +++ b/libs/dfts-helper/src/lib/helper/string/url/url.ts @@ -1,9 +1,7 @@ import { UndefinedOrNullOr } from '../../../types'; const isUrlRegEx = - // eslint-disable-next-line no-useless-escape /((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)/; - /** * Returns true if the given string is an url, false if not * @param {string} url