return null bio if the raw bio is null
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m20s
All checks were successful
Deploy App / docker (ubuntu-latest, 2.44.0, 17, 3.8.5) (push) Successful in 1m20s
This commit is contained in:
@ -163,6 +163,9 @@ public class Account {
|
||||
* @return The bio.
|
||||
*/
|
||||
public static Bio fromRaw(String raw) {
|
||||
if (raw == null || raw.isEmpty()) {
|
||||
return null;
|
||||
}
|
||||
return new Bio(
|
||||
raw.split("\n"),
|
||||
raw.replaceAll("<[^>]*>", "").split("\n")
|
||||
|
Reference in New Issue
Block a user