revert: using string replacement for whitespace checking

Ref: bc08c149b7.
This commit is contained in:
FineFindus 2024-07-07 08:19:09 +02:00
parent bc08c149b7
commit 4caa6cf650
No known key found for this signature in database
GPG Key ID: 64873EE210FF8E6B
1 changed files with 0 additions and 3 deletions

View File

@ -280,9 +280,6 @@ public abstract class StatusDisplayItem{
Matcher matcher=QUOTE_MENTION_PATTERN.matcher(status.content);
if(matcher.find()){
String quoteMention=matcher.group();
// FIXME: This is ugly. I wanna do it all in the regex >:(
if(statusForContent.content.contains("RE:<br />"+quoteMention))
quoteMention = "RE:<br />"+quoteMention;
statusForContent.content=statusForContent.content.replace(quoteMention, "");
}
}