Skip to content

Commit

Permalink
Merge pull request clonemeagain#33 from dc9-dev/patch-1
Browse files Browse the repository at this point in the history
Update config.php
  • Loading branch information
clonemeagain authored Sep 1, 2022
2 parents 235436a + 6826114 commit 9def718
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function ($x, $y, $n) {
return Plugin::translate('slack');
}

function pre_save($config, &$errors) {
function pre_save(&$config, &$errors) {
if ($config['slack-regex-subject-ignore'] && false === @preg_match("/{$config['slack-regex-subject-ignore']}/i", null)) {
$errors['err'] = 'Your regex was invalid, try something like "spam", it will become: "/spam/i" when we use it.';
return FALSE;
Expand Down

0 comments on commit 9def718

Please sign in to comment.