We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b36db5a commit 6a036f4Copy full SHA for 6a036f4
csharp/extractor/Semmle.Extraction/FilePattern.cs
@@ -80,15 +80,15 @@ bool HasCharAt(int i, Predicate<char> p) =>
80
if (i + 2 < pattern.Length)
81
{
82
// Processing .../**/...
83
+ // ^^^
84
sb.Append("(.*/|)");
85
i += 3;
86
}
87
else
88
- // Processing .../**
89
- sb.Append(".*");
90
- // There's no need to add another .* to the end outside the loop, we can return early.
91
- return sb;
+ // Processing .../** at the end of the pattern.
+ // There's no need to add .* because it's anyways added outside the loop.
+ break;
92
93
94
0 commit comments