Skip to content

Commit

Permalink
This avoid errors
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Mar 15, 2024
1 parent 4ca9cd3 commit be9c2e4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static string GetFileName(string filePath,
/// <returns>Regex object</returns>
[GeneratedRegex(
"\\.[a-zA-Z0-9]{1,4}$",
RegexOptions.NonBacktracking,
RegexOptions.None,
matchTimeoutMilliseconds: 100)]
private static partial Regex FileNameWithoutExtensionRegex();

Expand All @@ -88,7 +88,7 @@ public static string GetFileNameWithoutExtension(string filePath)
/// <returns>Regex object</returns>
[GeneratedRegex(
"[^.][a-zA-Z0-9]{1,4}$",
RegexOptions.NonBacktracking,
RegexOptions.None,
matchTimeoutMilliseconds: 100)]
private static partial Regex FileExtensionWithoutDotRegex();

Expand Down

0 comments on commit be9c2e4

Please sign in to comment.