diff options
-rw-r--r-- | app/views/admin_censor_rule/_form.rhtml | 2 | ||||
-rw-r--r-- | spec/models/censor_rule_spec.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/app/views/admin_censor_rule/_form.rhtml b/app/views/admin_censor_rule/_form.rhtml index d8a8f05d7..ac43de704 100644 --- a/app/views/admin_censor_rule/_form.rhtml +++ b/app/views/admin_censor_rule/_form.rhtml @@ -35,4 +35,6 @@ things by individual request or by user by adding the censor rule from the appropriate page. If you need to redact across a whole authority, it will be easy enough to make code changes to add it, so do ask. </p> +<p><strong>Regexp rules that are hard to process will really slow down request display.</strong> Please only use regexps if you really need to. +</p> diff --git a/spec/models/censor_rule_spec.rb b/spec/models/censor_rule_spec.rb index 1965b0894..c11b05a03 100644 --- a/spec/models/censor_rule_spec.rb +++ b/spec/models/censor_rule_spec.rb @@ -116,7 +116,7 @@ describe 'when validating rules' do describe 'when the allow_global flag has been set' do before do - @censor_rule = CensorRule.new + @censor_rule = CensorRule.new(:text => 'some text') @censor_rule.allow_global = true end |