forked from Nexus/nexus
parent
df592b3f38
commit
ed84410039
13 changed files with 540 additions and 66 deletions
|
|
@ -1,3 +1,8 @@
|
|||
extension GetLocalpart on String {
|
||||
String get localpart => length > 1 ? substring(1).split(":").first : "?";
|
||||
|
||||
String? get serverName {
|
||||
final index = indexOf(":");
|
||||
return index == -1 ? null : substring(index + 1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue