util-helpers 4.12.5 → 4.12.6

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.
@@ -562,7 +562,7 @@
562
562
  return lastCode === checkCode;
563
563
  }
564
564
 
565
- const version = "4.12.5";
565
+ const version = "4.12.6";
566
566
 
567
567
  var config = {
568
568
  // 禁用warning提示
@@ -2500,24 +2500,17 @@
2500
2500
  */
2501
2501
 
2502
2502
  function parseIdCard(id) {
2503
- if (!isIdCard(id, {
2504
- loose: true
2505
- })) {
2503
+ if (!regIdCard.test(id)) {
2506
2504
  return null;
2507
2505
  }
2506
+ /** @type {RegExpExecArray} */
2507
+ // @ts-ignore
2508
2508
 
2509
- var info = regIdCard.exec(id);
2510
2509
 
2511
- if (!info) {
2512
- return null;
2513
- }
2514
- /**
2515
- * @type {{ province: string, city: string, area: string, year: string, month: string, day: string, gender: string }}
2516
- *
2517
- */
2510
+ var info = regIdCard.exec(id);
2511
+ /** @type {{ province: string, city: string, area: string, year: string, month: string, day: string, gender: string }} */
2518
2512
  // @ts-ignore
2519
2513
 
2520
-
2521
2514
  var origin = (info === null || info === void 0 ? void 0 : info.groups) || {
2522
2515
  province: info[1],
2523
2516
  city: info[2],