From 1e2e29329a08431e72f21c0a0419cef2b4d3c834 Mon Sep 17 00:00:00 2001 From: marsalva Date: Thu, 24 Sep 2026 07:24:43 +0000 Subject: [PATCH] Fix: aceptar referencias HomeServe 16xxxxxx (antes solo 15xxxxxx) --- robot.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/robot.js b/robot.js index f851980..b71b4b9 100644 --- a/robot.js +++ b/robot.js @@ -400,8 +400,8 @@ async function runHomeserve(ownerId, user, pass, gremiosDB) { const firstTd = tr.querySelector('td'); if (!firstTd) return; - const textMatch = firstTd.innerText.trim().match(/^15\d{6}$/); - const aMatch = firstTd.querySelector('a') ? firstTd.querySelector('a').innerText.trim().match(/^15\d{6}$/) : null; + const textMatch = firstTd.innerText.trim().match(/^1\d{7}$/); + const aMatch = firstTd.querySelector('a') ? firstTd.querySelector('a').innerText.trim().match(/^1\d{7}$/) : null; const ref = textMatch ? textMatch[0] : (aMatch ? aMatch[0] : null); if (ref) {