Use invariant tolower

This commit is contained in:
smoogipoo 2018-09-26 18:44:03 +09:00
parent 6efecc4b35
commit e259911875
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ public async Task ImportAsync(string path)
return;
}
if (importer.HandledExtensions.Contains(Path.GetExtension(path)?.ToLower()))
if (importer.HandledExtensions.Contains(Path.GetExtension(path)?.ToLowerInvariant()))
importer.Import(path);
}
}

View File

@ -243,7 +243,7 @@ public override void SetHost(GameHost host)
public void Import(params string[] paths)
{
var extension = Path.GetExtension(paths.First())?.ToLower();
var extension = Path.GetExtension(paths.First())?.ToLowerInvariant();
foreach (var importer in fileImporters)
if (importer.HandledExtensions.Contains(extension)) importer.Import(paths);