@@ -65,7 +65,7 @@ class Locale {
|
|||||||
for (let i = 0; i < links.length; i++) {
|
for (let i = 0; i < links.length; i++) {
|
||||||
let link = links[i][0];
|
let link = links[i][0];
|
||||||
let name = link.match(/(?<=\[).*?(?=])/g);
|
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 we fail to extract the link name and/or URL, skip this match
|
||||||
if (null === name || null === url) continue;
|
if (null === name || null === url) continue;
|
||||||
|
Reference in New Issue
Block a user