From 3214f9cd0e632eee725b35f8b891681047ad91bc Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 2 Feb 2015 19:55:37 -0800 Subject: [PATCH] Allow hyphens in filter highlight CSS classes. #316 --- src/Filtering/Filter.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Filtering/Filter.coffee b/src/Filtering/Filter.coffee index 27c185f23..0a33af9fd 100755 --- a/src/Filtering/Filter.coffee +++ b/src/Filtering/Filter.coffee @@ -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'