Fix backlinks

This commit is contained in:
Zixaphir 2014-05-03 07:02:44 -07:00
parent fd76d85c07
commit 541882103a
3 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);

View File

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