More upvotes and make regexp more readable.

This commit is contained in:
ccd0 2016-03-29 01:34:00 -07:00 committed by name
parent f8209a7bf4
commit edd6f5477a

View File

@ -1,7 +1,25 @@
Upvotes =
count: {}
text: '\u305D\u3046\u3060\u306D'
regexp: /(?:^>.*\n)+\s*(?:\u305D\u3046\u3060\u306D|(?:this(?!\ )|\+1|upvote(?!\ )d?|under[\ -]?rated|\/thread)\b)/gmi
regexp: ///
(?:^>.*\n)+\s*
(?:
\u305D\u3046\u3060\u306D
|
(?:
this(?!\ )
|\+1
|upvote(?!\ )d?
|under[\ -]?rated
|\/thread
|10\/10
|(?:i\ |top\ )*(?:lol|kek)(?:'?d|\.?$)
|(?:fukken\ |fucking\ )?saved
|nice(?!\ )
)
\b
)
///gmi
init: ->
return unless g.VIEW in ['thread', 'index'] and Conf['Upvotes']