Skip to content

Commit

Permalink
Revert "chore(dfts-helper): fix isUrlRegex eslint"
Browse files Browse the repository at this point in the history
This reverts commit cc45f7e.
  • Loading branch information
Dafnik committed May 31, 2024
1 parent 4eb9b42 commit 4e25c56
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions libs/dfts-helper/src/lib/helper/string/url/url.ts
Original file line number Diff line number Diff line change
@@ -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 <code>true</code> if the given string is an url, <code>false</code> if not
* @param {string} url
Expand Down

0 comments on commit 4e25c56

Please sign in to comment.