From 34ca89613d780c8815b39e638e4b016ec4fc2ec2 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Mon, 28 Mar 2016 03:42:29 -0700 Subject: [PATCH] Fix 'this' false positives, add more alternatives. --- src/Quotelinks/Upvotes.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Quotelinks/Upvotes.coffee b/src/Quotelinks/Upvotes.coffee index 18f8edc15..893847c31 100644 --- a/src/Quotelinks/Upvotes.coffee +++ b/src/Quotelinks/Upvotes.coffee @@ -1,7 +1,7 @@ Upvotes = count: {} text: '\u305D\u3046\u3060\u306D' - regexp: /(?:^>.*\n)+\s*(?:\u305D\u3046\u3060\u306D|this)/gmi + regexp: /(?:^>.*\n)+\s*(?:\u305D\u3046\u3060\u306D|(?:this(?!\ )|\+1|upvote(?!\ )d?|under[\ -]?rated|\/thread)\b)/gmi init: -> return unless g.VIEW in ['thread', 'index'] and Conf['Upvotes']