mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Update url-regex/index.d.ts * Add my name as comment * Increase the version number * Remove patch version
14 lines
368 B
TypeScript
14 lines
368 B
TypeScript
import urlRegex = require('url-regex');
|
|
|
|
urlRegex().test('https://github.com foo bar');
|
|
|
|
urlRegex().test('www.github.com foo bar');
|
|
|
|
urlRegex({exact: true}).test('https://github.com foo bar');
|
|
|
|
urlRegex({exact: true}).test('https://github.com');
|
|
|
|
urlRegex({exact: true, strict: false}).test('github.com');
|
|
|
|
'foo https://github.com bar //google.com'.match(urlRegex());
|