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:
parent
2377253676
commit
97da1928de
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue