fixing wrong number extraction

This commit is contained in:
orangecoding
2025-11-03 20:01:55 +01:00
parent 32c7518454
commit 53d5098cec
3 changed files with 5 additions and 4 deletions

View File

@@ -8,7 +8,7 @@ function normalize(o) {
const title = o.title || 'No title available';
const link = o.link != null ? decodeURIComponent(o.link) : config.url;
var urlReg = new RegExp(/url\((.*?)\)/gim);
const urlReg = new RegExp(/url\((.*?)\)/gim);
const image = o.image != null ? urlReg.exec(o.image)[1] : null;
return Object.assign(o, { id, address, title, link, image });
}