aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/utils/UIHelper.java
diff options
context:
space:
mode:
authorM. Dietrich <mdt@emdete.de>2014-09-02 01:16:33 +0200
committerM. Dietrich <mdt@emdete.de>2014-09-02 01:18:25 +0200
commita7b3aa343ea3774d105a09132135fdd7f13fdb3f (patch)
tree1376342596927fa5d68185c27bd97f0afc8d3b83 /src/eu/siacs/conversations/utils/UIHelper.java
parent546082147ae161aa7568277db653655483cd745e (diff)
add all whitespaces in regex
Diffstat (limited to '')
-rw-r--r--src/eu/siacs/conversations/utils/UIHelper.java2
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();