rheactor-value-objects
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -16,4 +16,4 @@ 'use strict'; | ||
// http://stackoverflow.com/a/3809435 | ||
var URIRegex = /^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6}\b([-a-zA-Z0-9@:%_+.~#?&//=]*)/; | ||
// http://stackoverflow.com/a/3809435, + DomainRegex | ||
var uriRegex = /^https?:\/\/(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9](\/[-a-zA-Z0-9@:%_+.~#?&//=()]*)*$/i; | ||
@@ -38,3 +38,3 @@ var URIValue = exports.URIValue = function () { | ||
} | ||
if (!URIRegex.test(uri)) { | ||
if (!uriRegex.test(uri)) { | ||
throw new _errors.ValidationFailedError('Not a URI: ' + uri); | ||
@@ -41,0 +41,0 @@ } |
{ | ||
"name": "rheactor-value-objects", | ||
"description": "A collection of value objects", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"main": "dist/index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
42218
0