Comparing version 3.1.1 to 3.2.0
@@ -16,3 +16,3 @@ 'use strict'; | ||
var regex = [ | ||
protocol, auth, '(?:localhost|' + ip + '|' + host + domain + tld + ')', | ||
'(?:' + protocol + '|www\\.)' + auth, '(?:localhost|' + ip + '|' + host + domain + tld + ')', | ||
port, path | ||
@@ -19,0 +19,0 @@ ].join(''); |
{ | ||
"name": "url-regex", | ||
"version": "3.1.1", | ||
"version": "3.2.0", | ||
"description": "Regular expression for matching URLs", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -23,2 +23,5 @@ # url-regex [![Build Status](http://img.shields.io/travis/kevva/url-regex.svg?style=flat)](https://travis-ci.org/kevva/url-regex) | ||
urlRegex().test('www.github.com foo bar'); | ||
//=> true | ||
urlRegex({exact: true}).test('http://github.com foo bar'); | ||
@@ -25,0 +28,0 @@ //=> false |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3543
57