@tspower/regexpr
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -5,2 +5,3 @@ export declare const email: RegExp; | ||
export declare const noNumber: RegExp; | ||
export declare const onlyDigit: RegExp; | ||
export declare const integer: RegExp; | ||
@@ -7,0 +8,0 @@ export declare const float: RegExp; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.email = /^(([^<>()\[\]\\.,;:\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,}))$/; | ||
exports.email = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; | ||
exports.cap = /^(V-|I-)?[0-9]{5}$/; | ||
exports.number = /^-?\d+$/; | ||
exports.noNumber = /^([^0-9]*)$/; | ||
exports.onlyDigit = /^([^0-9]*)$/; | ||
exports.integer = /^\d+$/; | ||
//export const float= /[+-]?([0-9]*[.])?[0-9]+/; | ||
exports.float = /^[+-]?([0-9]+([.][0-9]*)?|[.][0-9]+)$/; | ||
@@ -10,0 +10,0 @@ exports.negative = /^-\d*\.?\d+$/; |
{ | ||
"name": "@tspower/regexpr", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "A regexpr collection", | ||
@@ -5,0 +5,0 @@ "main": "./lib/regexpr.js", |
@@ -6,2 +6,12 @@ # Regexpr ![alt text](https://ppbusinessproject.visualstudio.com/TSPowerOne/_apis/build/status/TsPowerOne.regexpr?branchName=master) | ||
##regexpr available: | ||
1 - email | ||
2 - cap (italian) | ||
3 - number | ||
4 - noNumber (not contain numbers) | ||
5 - onlyDigit (alias for noNumber) | ||
6 - float | ||
7 - integer | ||
8 - negative | ||
9 - genericPhoneNumber | ||
@@ -8,0 +18,0 @@ ## Install |
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
31
30
4108
5