From 4e25c56c594d555aa061969fa0f0d1f517c64d26 Mon Sep 17 00:00:00 2001 From: Dafnik Date: Fri, 31 May 2024 13:04:48 +0200 Subject: [PATCH] Revert "chore(dfts-helper): fix isUrlRegex eslint" This reverts commit cc45f7e6ed1a4358d70bdeeaddd56756b8bc0a13. --- libs/dfts-helper/src/lib/helper/string/url/url.ts | 2 -- 1 file changed, 2 deletions(-) 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