* Fix ignore leading spaces in customized callsigns
This commit is contained in:
Applevangelist 2022-09-15 08:17:37 +02:00
parent 0076130483
commit c1ab3b5476

View File

@ -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