diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2014-09-02 10:39:13 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2014-09-02 10:39:13 +0200 |
commit | 6045bcc2ebef10ef58d905d3a3e0add8b8b20ffc (patch) | |
tree | 1da8b1bc7a695f759625bccb399ea03d901310f1 | |
parent | 6291ebf1a34bb423a329f7fbfaa8191db3c4e04a (diff) | |
parent | a7b3aa343ea3774d105a09132135fdd7f13fdb3f (diff) |
Merge pull request #408 from emdete/unicode_emoticons
add all whitespaces in regex
-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 69f833f2..49645475 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(); |