Skip to content

Commit 6847219

Browse files
committed
refactor: add case-insensitive regex option with timeout for project extension matching
1 parent f6b4409 commit 6847219

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CodeLineCounter/Utils/FileUtils.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public static string GetBasePath()
6262

6363
private static Regex GenerateProjectRegex(string projectExtension)
6464
{
65-
return new Regex($@"Project\(""{{.*}}""\) = "".*"", ""(.*{Regex.Escape(projectExtension)})""");
65+
return new Regex($@"Project\(""{{.*}}""\) = "".*"", ""(.*{Regex.Escape(projectExtension)})""", RegexOptions.IgnoreCase, TimeSpan.FromMilliseconds(100));
6666
}
6767

6868
[GeneratedRegex(@"Project\(""{.*}""\) = "".*"", ""(.*\.csproj)""")]

0 commit comments

Comments
 (0)