initials support complex names
This commit is contained in:
@ -746,3 +746,8 @@ exports.getLocalStorage = function (key, defaultValue) {
|
||||
exports.root = function (req) {
|
||||
return process.env.NEXT_PUBLIC_PUBLIC_URL;
|
||||
}
|
||||
|
||||
exports.getInitials = function (names) {
|
||||
const parts = names.split(' ');
|
||||
return parts.map(part => part[0] + ".").join('');
|
||||
}
|
Reference in New Issue
Block a user