mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-28 08:35:06 -05:00
Handle Em Dash in Showdown Import (#1959)
This commit is contained in:
@@ -67,7 +67,7 @@ public ShowdownSet(IEnumerable<string> lines)
|
||||
}
|
||||
private void LoadLines(IEnumerable<string> lines)
|
||||
{
|
||||
lines = lines.Select(z => z.Replace("'", "’").Trim()); // Sanitize apostrophes
|
||||
lines = lines.Select(z => z.Replace("'", "’").Replace("–", "-").Trim()); // Sanitize apostrophes & dashes
|
||||
lines = lines.Where(z => z.Length > 2);
|
||||
|
||||
ParseLines(lines);
|
||||
|
||||
Reference in New Issue
Block a user