From 4b4ec43f9d3ceb27a8b519ed8e3cb990affe9fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81?= Date: Tue, 3 Feb 2026 20:08:42 +0100 Subject: [PATCH] git commit del pull --- src/pages/Facturas.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/pages/Facturas.js b/src/pages/Facturas.js index 30210d0..dd75110 100755 --- a/src/pages/Facturas.js +++ b/src/pages/Facturas.js @@ -193,8 +193,9 @@ export function renderFacturasPage() { // Debounce para no hacer muchas llamadas clearTimeout(searchInput.debounceTimer); searchInput.debounceTimer = setTimeout(() => { - // Validación mínima: al menos 2 caracteres para activar búsqueda - if (inputValue.length >= 2) { + // Solo aplicar búsqueda si contiene al menos un número + const hasNumber = /\d/.test(inputValue); + if (hasNumber) { searchTerm = inputValue; } else { searchTerm = ''; // Si es muy corto, mostrar todas