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
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue