Remove length check

Nope, doesn't check length
This commit is contained in:
Kurt
2025-07-06 09:56:02 -05:00
parent d0f73c96c1
commit aee9171249
6 changed files with 0 additions and 24 deletions

View File

@@ -43,10 +43,6 @@ public static bool IsTrigger(ReadOnlySpan<char> name, LanguageID language)
if (result)
return true;
// Check for too-long names for Asian languages.
if (name.Length > Legal.MaxLengthTrainerAsian && language is (Japanese or Korean or ChineseS or ChineseT))
return true;
// Skip trash byte checks since nothing is legally generated with them; they'll already be flagged via trash byte checks.
return false; // OK

View File

@@ -39,10 +39,6 @@ public static bool IsTrigger(ReadOnlySpan<char> name, LanguageID language)
if (result)
return true;
// Check for too-long names for Asian languages.
if (name.Length > Legal.MaxLengthTrainerAsian && language is (Japanese or Korean or ChineseS or ChineseT))
return true;
// Skip trash byte checks since nothing is legally generated with them; they'll already be flagged via trash byte checks.
return false; // OK

View File

@@ -39,10 +39,6 @@ public static bool IsTrigger(ReadOnlySpan<char> name, LanguageID language)
if (result)
return true;
// Check for too-long names for Asian languages.
if (name.Length > Legal.MaxLengthTrainerAsian && language is (Japanese or Korean or ChineseS or ChineseT))
return true;
// Skip trash byte checks since nothing is legally generated with them; they'll already be flagged via trash byte checks.
return false; // OK

View File

@@ -40,10 +40,6 @@ public static bool IsTrigger(ReadOnlySpan<char> name, LanguageID language)
if (result)
return true;
// Check for too-long names for Asian languages.
if (name.Length > Legal.MaxLengthTrainerAsian && language is (Japanese or Korean or ChineseS or ChineseT))
return true;
// Skip trash byte checks since nothing is legally generated with them; they'll already be flagged via trash byte checks.
return false; // OK

View File

@@ -39,10 +39,6 @@ public static bool IsTrigger(ReadOnlySpan<char> name, LanguageID language)
if (result)
return true;
// Check for too-long names for Asian languages.
if (name.Length > Legal.MaxLengthTrainerAsian && language is (Japanese or Korean or ChineseS or ChineseT))
return true;
// Skip trash byte checks since nothing is legally generated with them; they'll already be flagged via trash byte checks.
return false; // OK

View File

@@ -119,10 +119,6 @@ public static bool IsTrigger(ReadOnlySpan<char> name, LanguageID language)
if (result)
return true;
// Check for too-long names for Asian languages.
if (name.Length > Legal.MaxLengthTrainerAsian && language is (LanguageID.Japanese or LanguageID.Korean or LanguageID.ChineseS or LanguageID.ChineseT))
return true;
// Skip trash byte checks since nothing is legally generated with them; they'll already be flagged via trash byte checks.
return false; // OK
}