From 97da1928def476032dd1e7f72ae5fd4f4abab5b9 Mon Sep 17 00:00:00 2001 From: Vivien Didelot Date: Mon, 14 Oct 2013 11:02:15 -0400 Subject: [PATCH] plugins: match /nsfw/i tag anywhere in the message Sometimes you may have trailing whitespace or put this tag at the beginning of the line. Ref: #27 --- js/plugins.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/plugins.js b/js/plugins.js index 6fa5061..c84e2a7 100644 --- a/js/plugins.js +++ b/js/plugins.js @@ -29,7 +29,7 @@ var Plugin = function(contentForMessage) { */ plugins.service('plugins', ['userPlugins', '$sce', function(userPlugins, $sce) { - var nsfwRegexp = new RegExp('nsfw$', 'i'); + var nsfwRegexp = new RegExp('nsfw', 'i'); /* * Defines the plugin manager object