Skip to content

Commit

Permalink
Removed non capturing group
Browse files Browse the repository at this point in the history
  • Loading branch information
CristianAmbrosini committed Mar 14, 2023
1 parent 7d82f9d commit 0253636
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -83,7 +83,7 @@ private static string ToRegex(string wildcardPattern)
// Zero or more directories
if (i + 2 < wildcardPattern.Length && IsSlash(wildcardPattern[i + 2]))
{
sb.Append($"(?:.*{escapedDirectorySeparator}|)");
sb.Append($"(.*{escapedDirectorySeparator}|)");
i += 2;
}
else
Expand Down

0 comments on commit 0253636

Please sign in to comment.