diff options
-rw-r--r-- | src/eu/siacs/conversations/utils/UIHelper.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/utils/UIHelper.java b/src/eu/siacs/conversations/utils/UIHelper.java index 69f833f2a..49645475b 100644 --- a/src/eu/siacs/conversations/utils/UIHelper.java +++ b/src/eu/siacs/conversations/utils/UIHelper.java @@ -561,7 +561,7 @@ public class UIHelper { {"\\^\\^", " 😁 ", }, }) { String p = r[0]; - p = "(^" + p + "$|^" + p + " +| +" + p + " +| +" + p + "$)"; + p = "(^" + p + "$|^" + p + "\\s+|\\s+" + p + "\\s+|\\s+" + p + "$)"; body = body.replaceAll(p, r[1]); } body = body.trim(); |