util-helpers 5.0.3 → 5.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/util-helpers.js +3 -3
- package/dist/util-helpers.js.map +1 -1
- package/dist/util-helpers.min.js +1 -1
- package/dist/util-helpers.min.js.map +1 -1
- package/esm/VERSION.js +1 -1
- package/esm/parseIdCard.js +2 -2
- package/lib/VERSION.js +1 -1
- package/lib/parseIdCard.js +2 -2
- package/package.json +1 -1
package/dist/util-helpers.js
CHANGED
|
@@ -1077,7 +1077,7 @@
|
|
|
1077
1077
|
return sizes[i] ? "".concat(Number((numBytes / Math.pow(k, i)).toFixed(precision))).concat(spaceMark).concat(sizes[i]) : numBytes + '';
|
|
1078
1078
|
}
|
|
1079
1079
|
|
|
1080
|
-
var regIdCard = /^(
|
|
1080
|
+
var regIdCard = /^(\d{2})(\d{2})(\d{2})((?:\d{2})?\d{2})(\d{2})(\d{2})\d{2}(\d)(?:\d|X)?$/i;
|
|
1081
1081
|
var Provinces = [
|
|
1082
1082
|
['11', '北京市'],
|
|
1083
1083
|
['12', '天津市'],
|
|
@@ -1120,7 +1120,7 @@
|
|
|
1120
1120
|
if (!match) {
|
|
1121
1121
|
return null;
|
|
1122
1122
|
}
|
|
1123
|
-
var origin =
|
|
1123
|
+
var origin = {
|
|
1124
1124
|
province: match[1],
|
|
1125
1125
|
city: match[2],
|
|
1126
1126
|
area: match[3],
|
|
@@ -2006,7 +2006,7 @@
|
|
|
2006
2006
|
return internalFindTreeSelect(tree, predicate, childrenField);
|
|
2007
2007
|
}
|
|
2008
2008
|
|
|
2009
|
-
var VERSION = "5.0.
|
|
2009
|
+
var VERSION = "5.0.4";
|
|
2010
2010
|
|
|
2011
2011
|
var EmitterPro = /** @class */ (function () {
|
|
2012
2012
|
function EmitterPro() {
|