From 7fd2a0fc739ac72bae3f6cf75d210dbfb51b8236 Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Thu, 5 Oct 2023 02:52:06 +0100 Subject: [PATCH] Use `string.EndsWith(string, StringComparison`. --- DVD/CSS.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DVD/CSS.cs b/DVD/CSS.cs index 8a3cd2f..e9acc58 100644 --- a/DVD/CSS.cs +++ b/DVD/CSS.cs @@ -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);