Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tspower/regexpr

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tspower/regexpr - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

1

lib/regexpr.d.ts

@@ -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;

4

lib/regexpr.js
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc