react-ecosistema-unp 2.0.0-pre.6 → 2.0.0-pre.7

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.
@@ -55,7 +55,10 @@ const w = () => {
55
55
  return e > o ? a = "La fecha no puede ser posterior al día de hoy" : e < r && (a = "La fecha no puede superar los 100 años de antigüedad"), { formatted: t, error: a };
56
56
  },
57
57
  // Validación campos dirección rural - Permite letras y numero, mayúsculas y limpia espacios
58
- otherText: (t) => ({ formatted: t.replace(/[^a-zA-Z0-9áéíóúÁÉÍÓÚñÑ\s]/g, "").replace(/\s+/g, " ").replace(/^\s/, ""), error: "" }),
58
+ otherText: (t) => {
59
+ let e = t.replace(/[^a-zA-Z0-9áéíóúÁÉÍÓÚñÑ\s]/g, "").replace(/\s+/g, " ").replace(/^\s/, "");
60
+ return { formatted: e.charAt(0).toUpperCase() + e.slice(1), error: "" };
61
+ },
59
62
  // Campos de texto observaciones
60
63
  observationsText: (t) => {
61
64
  if (!t) return { formatted: "", error: "" };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "react-ecosistema-unp",
3
3
  "author": "Ecosistema de Información - Unidad Nacional de Protección",
4
4
  "private": false,
5
- "version": "2.0.0-pre.6",
5
+ "version": "2.0.0-pre.7",
6
6
  "type": "module",
7
7
  "exports": {
8
8
  ".": {