Fix regex

This commit is contained in:
tom79 2019-08-24 11:56:08 +02:00
parent 2677308dbf
commit f4f6c488d9
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)).)*)(<\\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){