瀏覽代碼

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