mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-26 16:30:52 +01:00
Merge branch 'fixed-worfilter' into 'dev'
Fixed WordFilter Code See merge request morningstar/Arcturus-Community!517
This commit is contained in:
commit
02eb59850c
@ -79,7 +79,7 @@ public class WordFilter {
|
||||
return DIACRITICS_AND_FRIENDS.matcher(Normalizer.normalize(StringUtils.stripAccents(message), Normalizer.Form.NFKD)
|
||||
.replaceAll("[,.;:'\"]", " ").replace("I", "l")
|
||||
.replaceAll("[^\\p{ASCII}*$]", "").replaceAll("\\p{M}", " ")
|
||||
.replaceAll("^\\p{M}*$]", "").replaceAll("[1|]", "i")
|
||||
.replaceAll("[^\\p{M}*$]", "").replaceAll("[1|]", "i")
|
||||
.replace("2", "z").replace("3", "e")
|
||||
.replace("4", "a").replace("5", "s")
|
||||
.replace("8", "b").replace("0", "o")
|
||||
|
Loading…
Reference in New Issue
Block a user