mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-07 01:35:03 -05:00
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];
|
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.replaceAll(p, r[1]);
|
||||||
}
|
}
|
||||||
body = body.trim();
|
body = body.trim();
|
||||||
|
Loading…
Reference in New Issue
Block a user