Use string.EndsWith(string, StringComparison.

This commit is contained in:
2023-10-05 02:52:06 +01:00
parent 24557e80cd
commit 7fd2a0fc73

View File

@@ -978,7 +978,7 @@ public class CSS
{
while(fs.ReadDir(node, out string entry) == ErrorNumber.NoError && entry is not null)
{
if(!entry.ToLower().EndsWith(".vob"))
if(!entry.EndsWith(".vob", StringComparison.InvariantCultureIgnoreCase))
continue;
fs.Stat("VIDEO_TS" + "/" + entry, out FileEntryInfo stat);