@skyux/validation
Advanced tools
Comparing version 5.6.0 to 5.6.1
@@ -34,7 +34,7 @@ (function (global, factory) { | ||
// tslint:disable-next-line:max-line-length | ||
var regex = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; | ||
var regex = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; | ||
return regex.test(emailAddress); | ||
}; | ||
SkyValidation.isUrl = function (url) { | ||
var regex = /^((http|https):\/\/)?([\w\-]+\.)+[\w\-]+/i; | ||
var regex = /^((http|https):\/\/)?([\w-]+\.)+[\w-]+/i; | ||
return regex.test(url); | ||
@@ -41,0 +41,0 @@ }; |
@@ -6,7 +6,7 @@ export class SkyValidation { | ||
// tslint:disable-next-line:max-line-length | ||
const regex = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; | ||
const regex = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; | ||
return regex.test(emailAddress); | ||
} | ||
static isUrl(url) { | ||
const regex = /^((http|https):\/\/)?([\w\-]+\.)+[\w\-]+/i; | ||
const regex = /^((http|https):\/\/)?([\w-]+\.)+[\w-]+/i; | ||
return regex.test(url); | ||
@@ -13,0 +13,0 @@ } |
@@ -10,7 +10,7 @@ import * as i0 from '@angular/core'; | ||
// tslint:disable-next-line:max-line-length | ||
const regex = /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; | ||
const regex = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/; | ||
return regex.test(emailAddress); | ||
} | ||
static isUrl(url) { | ||
const regex = /^((http|https):\/\/)?([\w\-]+\.)+[\w\-]+/i; | ||
const regex = /^((http|https):\/\/)?([\w-]+\.)+[\w-]+/i; | ||
return regex.test(url); | ||
@@ -17,0 +17,0 @@ } |
{ | ||
"name": "@skyux/validation", | ||
"version": "5.6.0", | ||
"peerDependencies": { | ||
"@angular/common": "^12.2.16", | ||
"@angular/core": "^12.2.16", | ||
"@angular/forms": "^12.2.16" | ||
}, | ||
"dependencies": { | ||
"tslib": "^2.3.1" | ||
}, | ||
"version": "5.6.1", | ||
"author": "Blackbaud, Inc.", | ||
@@ -26,2 +18,10 @@ "keywords": [ | ||
"homepage": "https://github.com/blackbaud/skyux#readme", | ||
"peerDependencies": { | ||
"@angular/common": "^12.2.16", | ||
"@angular/core": "^12.2.16", | ||
"@angular/forms": "^12.2.16" | ||
}, | ||
"dependencies": { | ||
"tslib": "^2.3.1" | ||
}, | ||
"main": "bundles/skyux-validation.umd.js", | ||
@@ -28,0 +28,0 @@ "module": "fesm2015/skyux-validation.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
89309