mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-22 23:10:52 +01:00
Fixed WordFilter Code
This commit is contained in:
parent
8ee87fcdd9
commit
a24bed7001
@ -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