Fix upper case in authors' last name

This commit is contained in:
Nicolò P 2024-02-14 14:21:59 +01:00
parent 308f680a87
commit f9a9d36bd8

View File

@ -20,7 +20,7 @@ namespace Txt2Bib.Records
a = a.Trim();
var s = a.Split(' ');
return s.Length > 1 ?
$"{s[1]} {s[0]}" : a;
$"{s[1]} {s[0][0]}{s[0][1..].ToLowerInvariant()}" : a;
}
}