@selfeesas/shared-components 1.20.1 → 1.20.2

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.
@@ -8910,8 +8910,8 @@ function Sp(i) {
8910
8910
  return Number.isNaN(E.getTime()) ? i : E.toISOString();
8911
8911
  }
8912
8912
  function Ci(i) {
8913
- if (!i || i.length !== 10) return !1;
8914
- const E = /^(\d{2})-(\d{2})-(\d{4})$/, t = i.match(E);
8913
+ if (i?.length !== 10) return !1;
8914
+ const t = /^(\d{2})-(\d{2})-(\d{4})$/.exec(i);
8915
8915
  if (!t) return !1;
8916
8916
  const v = Number.parseInt(t[1], 10), p = Number.parseInt(t[2], 10), c = Number.parseInt(t[3], 10);
8917
8917
  return p < 1 || p > 12 || v < 1 || v > 31 ? !1 : ol(v, p, c);
@@ -8920,7 +8920,7 @@ function Or(i) {
8920
8920
  if (!i) return null;
8921
8921
  if (i.length !== 10)
8922
8922
  return "Le format doit être JJ-MM-AAAA";
8923
- const E = /^(\d{2})-(\d{2})-(\d{4})$/, t = i.match(E);
8923
+ const t = /^(\d{2})-(\d{2})-(\d{4})$/.exec(i);
8924
8924
  if (!t)
8925
8925
  return "Format invalide. Utilisez JJ-MM-AAAA";
8926
8926
  const v = Number.parseInt(t[1], 10), p = Number.parseInt(t[2], 10), c = Number.parseInt(t[3], 10), a = vd(p);