diff --git a/src/sections/HistoriaClinica.tsx b/src/sections/HistoriaClinica.tsx index f5b178a..77cc198 100644 --- a/src/sections/HistoriaClinica.tsx +++ b/src/sections/HistoriaClinica.tsx @@ -728,7 +728,7 @@ for (const linea of lineas) { for (const [clave, info] of Object.entries(mapeoParametros)) { if (lineaLower.includes(clave)) { // buscar primer número puro después de show_chart - const match = linea.match(/show_chart\s+[\w\s]+\s+(\d+\.?\d*)/); + const match = linea.match(/show_chart.*?(\d+\.?\d*)/); if (match && match[1]) { const valor = parseFloat(match[1].replace(',', '.')); if (!isNaN(valor) && valor > 0 && valor < 1000) {