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
1 changed files with 1 additions and 1 deletions

View File

@ -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