Fix: aceptar referencias HomeServe 16xxxxxx (antes solo 15xxxxxx)

This commit is contained in:
2026-09-24 07:24:43 +00:00
parent 5e9fae3eec
commit 1e2e29329a

View File

@@ -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) {