hvp-shared 13.7.0 → 13.7.1

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.
@@ -398,7 +398,7 @@ exports.PHONE_REGEX = /(?:\+?52\s?1?\s?)?(?:\d{3}[\s-]?\d{3}[\s-]?\d{4}|\d{10})/
398
398
  * "AGENDADA POR SLR 02/12/25"
399
399
  * "AGENDADO POR SLR 02/12/25"
400
400
  */
401
- exports.SCHEDULER_REGEX = /\b(?:AG|AGENDO|AGENDAD[OA]\s+POR)\s+([A-Z]{2,4})\b/i;
401
+ exports.SCHEDULER_REGEX = /\b(?:AG|AGEND[OÓ]|AGENDAD[OA]\s+POR)\s+([A-Z]{2,4})\b/i;
402
402
  /**
403
403
  * Captures the "agendado por" col_code AND the date annotation that often follows it.
404
404
  *
@@ -407,7 +407,7 @@ exports.SCHEDULER_REGEX = /\b(?:AG|AGENDO|AGENDAD[OA]\s+POR)\s+([A-Z]{2,4})\b/i;
407
407
  * "AGENDADA POR SLR 02/12/25" → groups: SLR, "02/12/25"
408
408
  * "AGENDADO POR SLR" → groups: SLR, undefined
409
409
  */
410
- exports.SCHEDULER_WITH_DATE_REGEX = /\b(?:AG|AGENDO|AGENDAD[OA]\s+POR)\s+([A-Z]{2,4})(?:\s+(\d{1,2}[./\-]\d{1,2}(?:[./\-]\d{2,4})?|\d{1,2}\s+(?:ENE|FEB|MAR|ABR|MAY|JUN|JUL|AGO|SEP|OCT|NOV|DIC|ENERO|FEBRERO|MARZO|ABRIL|MAYO|JUNIO|JULIO|AGOSTO|SEPTIEMBRE|OCTUBRE|NOVIEMBRE|DICIEMBRE)))?\b/i;
410
+ exports.SCHEDULER_WITH_DATE_REGEX = /\b(?:AG|AGEND[OÓ]|AGENDAD[OA]\s+POR)\s+([A-Z]{2,4})(?:\s+(\d{1,2}[./\-]\d{1,2}(?:[./\-]\d{2,4})?|\d{1,2}\s+(?:ENE|FEB|MAR|ABR|MAY|JUN|JUL|AGO|SEP|OCT|NOV|DIC|ENERO|FEBRERO|MARZO|ABRIL|MAYO|JUNIO|JULIO|AGOSTO|SEPTIEMBRE|OCTUBRE|NOVIEMBRE|DICIEMBRE)))?\b/i;
411
411
  // ─── Pet age detection ───────────────────────────────────────────────────────
412
412
  /**
413
413
  * Captures pet age expressions in Spanish from descriptions.
@@ -123,6 +123,10 @@ describe("Description regexes", () => {
123
123
  ["AG YMP 14.05.26", "YMP"],
124
124
  ["AGENDADA POR SLR 02/12/25", "SLR"],
125
125
  ["AGENDADO POR SCP", "SCP"],
126
+ // Accented variants — Spanish past tense "agendó" with tilde
127
+ ["AGENDÓ YMP", "YMP"],
128
+ ["agendó ymp", "YMP"],
129
+ ["Agendó SLR 16 mayo", "SLR"],
126
130
  ];
127
131
  for (const [text, expected] of cases) {
128
132
  const match = text.match(google_calendar_constants_1.SCHEDULER_REGEX);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hvp-shared",
3
- "version": "13.7.0",
3
+ "version": "13.7.1",
4
4
  "description": "Shared types and utilities for HVP backend and frontend",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",