fix link parsing for the locales

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn
2025-07-24 18:30:42 +03:00
parent 2c5388bcce
commit 13a703352b

View File

@@ -65,7 +65,7 @@ class Locale {
for (let i = 0; i < links.length; i++) {
let link = links[i][0];
let name = link.match(/(?<=\[).*?(?=])/g);
let url = link.match(/(?<=\()[^ ]*(?=\))/g);
let url = link.match(/(?<=\]\()[^ ]*(?=\))/g);
// if we fail to extract the link name and/or URL, skip this match
if (null === name || null === url) continue;