Support recognizing quotelinks to pages with extensions other than .html.

This commit is contained in:
ccd0 2019-01-22 17:34:53 -08:00
parent 6961850e16
commit 07b4e4adeb

View File

@ -105,12 +105,12 @@ SW.tinyboard =
([^/]+) # boardID ([^/]+) # boardID
/res/ /res/
(\d+) # threadID (\d+) # threadID
\.html# \.\w+#
(\d+) # postID (\d+) # postID
$ $
/// ///
quotelinkHTML: quotelinkHTML:
/<a [^>]*\bhref="[^"]*\/([^\/]+)\/res\/(\d+)\.html#(\d+)"/g /<a [^>]*\bhref="[^"]*\/([^\/]+)\/res\/(\d+)\.\w+#(\d+)"/g
bgColoredEl: -> bgColoredEl: ->
$.el 'div', className: 'post reply' $.el 'div', className: 'post reply'