Merge pull request #408 from emdete/unicode_emoticons
add all whitespaces in regex
This commit is contained in:
commit
6045bcc2eb
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue