Fix regex

This commit is contained in:
tom79 2019-08-24 11:57:21 +02:00
parent f4f6c488d9
commit 67a4d90bc1
1 changed files with 1 additions and 1 deletions

View File

@ -649,7 +649,7 @@ public class Status implements Parcelable{
i++;
}
status.setImageURL(imgs);
content = content.replaceAll("(<\\s?p\\s?>)&gt;(((?!(<\\/p>)|(<br)){5,})*)(<\\s?\\/p\\s?><\\s?p\\s?>|<\\s?br\\s?\\/?>)","<blockquote>$2</blockquote><p>");
content = content.replaceAll("(<\\s?p\\s?>)&gt;(((?!(<\\/p>)|(<br)).){5,})(<\\s?\\/p\\s?><\\s?p\\s?>|<\\s?br\\s?\\/?>)","<blockquote>$2</blockquote><p>");
spannableStringContent = new SpannableString(content);
final int[] j = {0};
if( status.getImageURL() != null && status.getImageURL().size() > 0){