From 541882103a5324e7e374e3fdf3c2fe63e830b4d4 Mon Sep 17 00:00:00 2001 From: Zixaphir Date: Sat, 3 May 2014 07:02:44 -0700 Subject: [PATCH] Fix backlinks --- builds/4chan-X.user.js | 2 +- builds/crx/script.js | 2 +- src/General/lib/post.class | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 4176f78dc..31240de88 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -1175,7 +1175,7 @@ Post.prototype.parseQuote = function(quotelink) { var fullID, match; - if (!(match = quotelink.href.match(/boards\.4chan\.org\/([^\/]+)\/(res|thread)\/\d+(.*)?\#p(\d+)$/))) { + if (!(match = quotelink.href.match(/boards\.4chan\.org\/([^\/]+)\/(res|thread)\/\d+.*\#p(\d+)$/))) { return; } this.nodes.quotelinks.push(quotelink); diff --git a/builds/crx/script.js b/builds/crx/script.js index 63aaddebc..293ec4e3c 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -1231,7 +1231,7 @@ Post.prototype.parseQuote = function(quotelink) { var fullID, match; - if (!(match = quotelink.href.match(/boards\.4chan\.org\/([^\/]+)\/(res|thread)\/\d+(.*)?\#p(\d+)$/))) { + if (!(match = quotelink.href.match(/boards\.4chan\.org\/([^\/]+)\/(res|thread)\/\d+.*\#p(\d+)$/))) { return; } this.nodes.quotelinks.push(quotelink); diff --git a/src/General/lib/post.class b/src/General/lib/post.class index abe0c47b4..e4899edc2 100755 --- a/src/General/lib/post.class +++ b/src/General/lib/post.class @@ -101,8 +101,8 @@ class Post return unless match = quotelink.href.match /// boards\.4chan\.org/ ([^/]+) # boardID - /(res|thread)/\d+ - (.*)? # thread slug + /thread/\d+ + .* # thread slug \#p(\d+) # postID $ ///