mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-03 06:13:40 +01:00
fix some warnings
This commit is contained in:
parent
0c87717ffc
commit
8956bd54a9
9 changed files with 27 additions and 16 deletions
|
|
@ -2,6 +2,8 @@ using System.Diagnostics.CodeAnalysis;
|
|||
using System.Linq;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
using FFXIVClientStructs.FFXIV.Client.UI;
|
||||
|
||||
namespace Dalamud.Utility;
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -40,7 +42,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.UIModule.IsPlayerCharacterName(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