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
This commit is contained in:
Vivien Didelot 2013-10-14 11:02:15 -04:00
parent 2377253676
commit 97da1928de

View file

@ -29,7 +29,7 @@ var Plugin = function(contentForMessage) {
*/ */
plugins.service('plugins', ['userPlugins', '$sce', function(userPlugins, $sce) { 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 * Defines the plugin manager object