mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-05-09 04:24:36 -05:00
Ignore symbols (apostrophe) for string matching
Farfetch'd vs Farfetch’d
This commit is contained in:
parent
84c5f6e914
commit
3b2b86950f
|
|
@ -60,7 +60,7 @@ static bool Match(string item, string find)
|
|||
{
|
||||
if (item.Length != find.Length)
|
||||
return false;
|
||||
const CompareOptions options = CompareOptions.IgnoreNonSpace | CompareOptions.IgnoreCase;
|
||||
const CompareOptions options = CompareOptions.IgnoreNonSpace | CompareOptions.IgnoreCase | CompareOptions.IgnoreSymbols;
|
||||
var compare = CultureInfo.CurrentCulture.CompareInfo.Compare(item, find, options);
|
||||
return compare == 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user