Browse Source

Auto commit for build : 5213

 commit by: a.hassani <hassani.ayoub@gmail.com>

 with message : ajout de secuNum numéro de securité social FR
ansi que ses test unitaiiiireees
ayoub 1 year ago
parent
commit
172112e6f9
3 changed files with 6 additions and 3 deletions
  1. 3 1
      index.d.ts
  2. 1 0
      index.js
  3. 2 2
      package.json

+ 3 - 1
index.d.ts

@@ -2,6 +2,7 @@ declare const  alphabetique: RegExp;
 declare const email: RegExp;
 declare const alpha: RegExp;
 declare const num: RegExp;
+declare const secuNum: RegExp;
 declare const alphanum: RegExp;
 declare const url: RegExp;
 declare const ipAddress: RegExp;
@@ -44,7 +45,8 @@ export {
     matricule,
     tvaIntercom,
     iban,
-    //masks 
+    secuNum,
+    //masks
     numMask,
     alphaMask,
     alphanumMask,

+ 1 - 0
index.js

@@ -2,6 +2,7 @@ module.exports = {
 
 
     "num": /^[0-9]+$/,
+    "secuNum": /^[0-9]{15}$/,
     "numeric": /^[0-9]+$/,
     "alpha": /^[a-zA-Z_]+$/,
     "alphabetic": /^[a-zA-Z_]+$/,

+ 2 - 2
package.json

@@ -1,6 +1,6 @@
 {
   "name": "@d3v4pp/rex",
-  "version": "0.0.3",
+  "version": "0.0.1",
   "description": "a set of usefull regEx By D3v4pp",
   "main": "index.js",
   "scripts": {
@@ -30,6 +30,6 @@
   "keywords": ["regex","validation"],
   "license": "ISC",
   "devDependencies": {
-    "mocha": "^9.0.1"
+    "mocha": "^10.2.0"
   }
 }