mirror of
https://github.com/Tyrrrz/DiscordChatExporter.git
synced 2025-06-18 14:35:37 -04:00
Change InvalidFileNameChars to use FrozenSet instead of HashSet (#1384)
This commit is contained in:
parent
19c5fb40b2
commit
7dfcf5ac19
@ -1,5 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Frozen;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
|
||||||
@ -7,7 +7,7 @@ namespace DiscordChatExporter.Core.Utils;
|
|||||||
|
|
||||||
public static class PathEx
|
public static class PathEx
|
||||||
{
|
{
|
||||||
private static readonly HashSet<char> InvalidFileNameChars =
|
private static readonly FrozenSet<char> InvalidFileNameChars =
|
||||||
[
|
[
|
||||||
.. Path.GetInvalidFileNameChars(),
|
.. Path.GetInvalidFileNameChars(),
|
||||||
];
|
];
|
||||||
|
Loading…
Reference in New Issue
Block a user