mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-06 17:25:01 -05:00
add all whitespaces in regex
This commit is contained in:
parent
546082147a
commit
a7b3aa343e
@ -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 New Issue
Block a user