Allow hyphens in filter highlight CSS classes. #316

This commit is contained in:
ccd0 2015-02-02 19:55:37 -08:00
parent 5e78654bdb
commit 3214f9cd0e

View File

@ -60,7 +60,7 @@ Filter =
# If not specified, the highlight class will be filter-highlight.
# Defaults to post hiding.
if hl = /highlight/.test filter
hl = filter.match(/highlight:(\w+)/)?[1] or 'filter-highlight'
hl = filter.match(/highlight:([\w-]+)/)?[1] or 'filter-highlight'
# Put highlighted OP's thread on top of the board page or not.
# Defaults to on top.
top = filter.match(/top:(yes|no)/)?[1] or 'yes'