Browse Source

Fixing regex match for follow links

David Nabraczky-Hajos 1 năm trước cách đây
mục cha
commit
a1b5cb9169
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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];
     }
 });