@rss/common
Advanced tools
Comparing version 0.0.86 to 0.0.87
'use strict'; | ||
/* eslint-disable no-useless-escape */ | ||
// prettier-ignore | ||
var basePattern = '^UC\\d{10}$|^CA[0-9A-F]{22}$'; | ||
module.exports = { | ||
UC: { | ||
'03': /^UC\d{10}$|^3415925DA\w{6,31}$|^(201[8-9]|20[2-9]\d{1}|2[1-9]\d{2})(0600[0-9A-F]{16}|\d{20})$/ | ||
'03': new RegExp(basePattern + '|^3415925DA\\w{6,31}$|^(201[8-9]|20[2-9]\\d{1}|2[1-9]\\d{2})(0600[0-9A-F]{16}|\\d{20})$') | ||
}, | ||
MARS: { | ||
MMM: /^UC\d{10}$|^3415925DA\w{6,31}$|^(201[8-9]|20[2-9]\d{1}|2[1-9]\d{2})(0600[0-9A-F]{16}|\d{20})$/ | ||
MMM: new RegExp(basePattern + '|^3415925DA\\w{6,31}$|^(201[8-9]|20[2-9]\\d{1}|2[1-9]\\d{2})(0600[0-9A-F]{16}|\\d{20})$') | ||
}, | ||
DEFAULT: /^UC\d{10}$/ | ||
DEFAULT: new RegExp(basePattern) | ||
}; |
{ | ||
"name": "@rss/common", | ||
"version": "0.0.86", | ||
"version": "0.0.87", | ||
"description": "common constant, classes, & helper", | ||
@@ -5,0 +5,0 @@ "author": "Risk & Safety Solution", |
@@ -0,9 +1,17 @@ | ||
/* eslint-disable no-useless-escape */ | ||
// prettier-ignore | ||
const basePattern = '^UC\\d{10}$|^CA[0-9A-F]{22}$'; | ||
module.exports = { | ||
UC: { | ||
'03': /^UC\d{10}$|^3415925DA\w{6,31}$|^(201[8-9]|20[2-9]\d{1}|2[1-9]\d{2})(0600[0-9A-F]{16}|\d{20})$/, | ||
'03': new RegExp( | ||
`${basePattern}|^3415925DA\\w{6,31}$|^(201[8-9]|20[2-9]\\d{1}|2[1-9]\\d{2})(0600[0-9A-F]{16}|\\d{20})$`, | ||
), | ||
}, | ||
MARS: { | ||
MMM: /^UC\d{10}$|^3415925DA\w{6,31}$|^(201[8-9]|20[2-9]\d{1}|2[1-9]\d{2})(0600[0-9A-F]{16}|\d{20})$/, | ||
MMM: new RegExp( | ||
`${basePattern}|^3415925DA\\w{6,31}$|^(201[8-9]|20[2-9]\\d{1}|2[1-9]\\d{2})(0600[0-9A-F]{16}|\\d{20})$`, | ||
), | ||
}, | ||
DEFAULT: /^UC\d{10}$/, | ||
DEFAULT: new RegExp(basePattern), | ||
}; |
572583
15535