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 $ ///