We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4eb9b42 commit 4e25c56Copy full SHA for 4e25c56
libs/dfts-helper/src/lib/helper/string/url/url.ts
@@ -1,9 +1,7 @@
1
import { UndefinedOrNullOr } from '../../../types';
2
3
const isUrlRegEx =
4
- // eslint-disable-next-line no-useless-escape
5
/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w]*))?)/;
6
-
7
/**
8
* Returns <code>true</code> if the given string is an url, <code>false</code> if not
9
* @param {string} url
0 commit comments