From eb693db271189b4307ae93c00a44504b105568b9 Mon Sep 17 00:00:00 2001 From: Vollmer Date: Mon, 9 Sep 2024 15:29:57 +0200 Subject: [PATCH] [Bugfix] Name Format will no longer show initials for single names --- Util/Utils.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Util/Utils.lua b/Util/Utils.lua index 993c500..a833cd4 100644 --- a/Util/Utils.lua +++ b/Util/Utils.lua @@ -519,6 +519,10 @@ function Util.FormatName(fullName, format) table.insert(nameParts, name) end + if #nameParts == 1 then + return fullName + end + local firstName = nameParts[1] or "" local lastName = nameParts[#nameParts] or "" if lastName == "" then return fullName end