Merge pull request #408 from emdete/unicode_emoticons

add all whitespaces in regex
This commit is contained in:
Daniel Gultsch 2014-09-02 10:39:13 +02:00
commit 6045bcc2eb

View file

@ -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();