forked from leftypol/leftypol
Reduce overreach of fbi.gov filter
The initial filter would have ruined words or links containing 'discord', including the non-English words 'discordo' and 'discordar'. Legitimate use of the exact word 'discord', such as sowing discord, will still trigger the filter.
This commit is contained in:
parent
4a4bb4e856
commit
f2e398305d
1 changed files with 1 additions and 1 deletions
|
@ -492,7 +492,7 @@ $config['wordfilters'][] = array("/[$n_alias][^\p{L}0-9]*[$i_alias]+[^\p{L}0-9]*
|
|||
$config['wordfilters'][] = array("/[$n_alias][^\p{L}0-9]*[$i_alias]+[^\p{L}0-9]*[$g_alias]+[^\p{L}0-9]*[$g_alias]+/imu", 'uygh', true);
|
||||
$config['wordfilters'][] = array('/ewish uyghur/i', 'ewish nigger', true);
|
||||
|
||||
$config['wordfilters'][] = array('/discord(\.(gg|com))?/iu', 'fbi.gov', true);
|
||||
$config['wordfilters'][] = array('/(^|<br>|[ \/])discord(\.(gg|com))?(s?([\W]|<br>|$))/imu', '$1fbi.gov$4', true);
|
||||
|
||||
// Prevents replacing false positives in the middle of words or links
|
||||
$config['wordfilters'][] = array('/(^|<br>|[ (-])iq([) ?!.]||<br>|$)(score)?/imu', '$1autism score$2', true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue