From c1ab3b547605261bede74f379526dd0c4a2911fd Mon Sep 17 00:00:00 2001 From: Applevangelist Date: Thu, 15 Sep 2022 08:17:37 +0200 Subject: [PATCH] #GROUP * Fix ignore leading spaces in customized callsigns --- Moose Development/Moose/Wrapper/Group.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Moose Development/Moose/Wrapper/Group.lua b/Moose Development/Moose/Wrapper/Group.lua index a5092b03f..5fca65d48 100644 --- a/Moose Development/Moose/Wrapper/Group.lua +++ b/Moose Development/Moose/Wrapper/Group.lua @@ -2769,12 +2769,12 @@ function GROUP:GetCustomCallSign(ShortCallsign,Keepnumber,CallsignTranslations) if Keepnumber then shortcallsign = string.match(groupname,"#(.+)") -- Ghostrider 219 else - shortcallsign = string.match(groupname,"#([%a]+)") -- Ghostrider + shortcallsign = string.match(groupname,"#%s*([%a]+)") -- Ghostrider end personalized = true elseif IsPlayer and string.find(self:GetPlayerName(),"|") then -- personalized flight name in group naming - shortcallsign = string.match(self:GetPlayerName(),"|([%a]+)") -- Ghostrider + shortcallsign = string.match(self:GetPlayerName(),"|%s*([%a]+)") -- Ghostrider personalized = true end