mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-08 19:26:21 -05:00
Remove length check
Nope, doesn't check length
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user