From 4b1d69509432e70fdb92eb35613dcf055083e643 Mon Sep 17 00:00:00 2001 From: Harmonic Date: Thu, 5 May 2022 06:27:42 -0700 Subject: [PATCH] Revert xjoao's wordfilter 'fix' in ms4 branch. --- src/main/java/com/eu/habbo/habbohotel/modtool/WordFilter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/eu/habbo/habbohotel/modtool/WordFilter.java b/src/main/java/com/eu/habbo/habbohotel/modtool/WordFilter.java index a1dda3e2..b6f7fe01 100644 --- a/src/main/java/com/eu/habbo/habbohotel/modtool/WordFilter.java +++ b/src/main/java/com/eu/habbo/habbohotel/modtool/WordFilter.java @@ -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")