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
with-route-provider
Vivien Didelot 12 years ago
parent 2377253676
commit 97da1928de
  1. 2
      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

Loading…
Cancel
Save