Fix catalog/search link rewriting. #2151
This commit is contained in:
parent
3c00979b49
commit
efb1a0498a
@ -37,8 +37,8 @@ CatalogLinks =
|
||||
|
||||
node: ->
|
||||
for a in $$ 'a', @nodes.comment
|
||||
if m = a.href.match /^https?:\/\/boards\.4chan(?:nel)?\.org\/([^\/]+)\/catalog(#s=.*)?/
|
||||
a.href = "//boards.4chan(?:nel)?.org/#{m[1]}/#{m[2] or '#catalog'}"
|
||||
if m = a.href.match /^https?:\/\/(boards\.4chan(?:nel)?\.org\/[^\/]+)\/catalog(#s=.*)?/
|
||||
a.href = "//#{m[1]}/#{m[2] or '#catalog'}"
|
||||
return
|
||||
|
||||
toggle: ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user