|
@@ -46,7 +46,17 @@ namespace Ppub {
|
|
|
|
|
|
public string? author_name {
|
|
|
owned get {
|
|
|
- return author?.split("<", 1)[0].chomp();
|
|
|
+ return author?.split("<")[0].chomp();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public string? author_email {
|
|
|
+ owned get {
|
|
|
+ var email = author?.split("<");
|
|
|
+ if(email == null || email.length != 2) {
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+ return email[1].split(">")[0];
|
|
|
}
|
|
|
}
|
|
|
|