Skip to content

Commit

Permalink
Fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
HikariCalyx committed Jan 15, 2025
1 parent f244154 commit 5ab4f41
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions WzComparerR2/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3784,6 +3784,7 @@ private static bool IsUriSchemeRegistered(string scheme)

private static string RemoveInvalidFileNameChars(string fileName)
{
if (String.IsNullOrEmpty(fileName)) return "未知";
string invalidChars = new string(System.IO.Path.GetInvalidFileNameChars());
string regexPattern = $"[{Regex.Escape(invalidChars)}]";
return Regex.Replace(fileName, regexPattern, "_");
Expand Down

0 comments on commit 5ab4f41

Please sign in to comment.