Fix catalog/search link rewriting. #2151

This commit is contained in:
ccd0 2018-11-24 23:08:53 -08:00
parent 3c00979b49
commit efb1a0498a

View File

@ -37,8 +37,8 @@ CatalogLinks =
node: -> node: ->
for a in $$ 'a', @nodes.comment for a in $$ 'a', @nodes.comment
if m = a.href.match /^https?:\/\/boards\.4chan(?:nel)?\.org\/([^\/]+)\/catalog(#s=.*)?/ if m = a.href.match /^https?:\/\/(boards\.4chan(?:nel)?\.org\/[^\/]+)\/catalog(#s=.*)?/
a.href = "//boards.4chan(?:nel)?.org/#{m[1]}/#{m[2] or '#catalog'}" a.href = "//#{m[1]}/#{m[2] or '#catalog'}"
return return
toggle: -> toggle: ->