Преглед изворни кода

Fixing regex match for follow links

David Nabraczky-Hajos пре 1 година
родитељ
комит
a1b5cb9169
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      xwwp-follow-link.el

+ 1 - 1
xwwp-follow-link.el

@@ -101,7 +101,7 @@ var r = {};
 window.__xwidget_plus_follow_link_candidates = Array.from(document.querySelectorAll('a'));
 window.__xwidget_plus_follow_link_candidates.forEach((a, i) => {
     if (a.offsetWidth || a.offsetHeight || a.getClientRects().length) {
-        if (a.innerText.match(/\\\\S/))
+        if (a.innerText.match(/\\S/))
             r[i] = [a.innerText, a.href];
     }
 });