diff --git a/DiscordChatExporter.Core/Utils/PathEx.cs b/DiscordChatExporter.Core/Utils/PathEx.cs index b2e75ac8..d8ee8a65 100644 --- a/DiscordChatExporter.Core/Utils/PathEx.cs +++ b/DiscordChatExporter.Core/Utils/PathEx.cs @@ -1,5 +1,5 @@ using System; -using System.Collections.Generic; +using System.Collections.Frozen; using System.IO; using System.Text; @@ -7,7 +7,7 @@ namespace DiscordChatExporter.Core.Utils; public static class PathEx { - private static readonly HashSet InvalidFileNameChars = + private static readonly FrozenSet InvalidFileNameChars = [ .. Path.GetInvalidFileNameChars(), ];