Changed regex in formatAuthorInitials to work correctly with unicode firstnames
This commit is contained in:
+1
-1
@@ -1315,7 +1315,7 @@ class BibEntry {
|
|||||||
*/
|
*/
|
||||||
function formatAuthorInitials($author){
|
function formatAuthorInitials($author){
|
||||||
list($firstname, $lastname) = splitFullName($author);
|
list($firstname, $lastname) = splitFullName($author);
|
||||||
if ($firstname!='') return $lastname.' '.preg_replace("/(\p{Lu})\w*[- ]*/S","$1", $firstname);
|
if ($firstname!='') return $lastname.' '.preg_replace("/(\p{Lu})\w*[- ]*/Su","$1", $firstname);
|
||||||
else return $lastname;
|
else return $lastname;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user