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];
|
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