mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 14:23:40 +01:00
Merge branch 'master' into api11
# Conflicts: # Dalamud/Game/ClientState/Fates/Fate.cs # Dalamud/Game/Gui/NamePlate/NamePlateUpdateContext.cs # Dalamud/Interface/Internal/DalamudInterface.cs # Dalamud/Interface/Windowing/Window.cs # Dalamud/Utility/StringExtensions.cs # lib/FFXIVClientStructs
This commit is contained in:
commit
720b1676e5
49 changed files with 4573 additions and 93 deletions
|
|
@ -1,6 +1,6 @@
|
|||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
using FFXIVClientStructs.FFXIV.Client.UI;
|
||||
|
||||
namespace Dalamud.Utility;
|
||||
|
||||
|
|
@ -40,7 +40,7 @@ public static class StringExtensions
|
|||
public static bool IsValidCharacterName(this string value, bool includeLegacy = true)
|
||||
{
|
||||
if (string.IsNullOrEmpty(value)) return false;
|
||||
if (!FFXIVClientStructs.FFXIV.Client.UI.UIGlobals.IsValidPlayerCharacterName(value)) return false;
|
||||
if (!UIGlobals.IsValidPlayerCharacterName(value)) return false;
|
||||
return includeLegacy || value.Length <= 21;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue