зеркало из https://github.com/microsoft/DevSkim.git
Fixed condition handling bug - the VS engine does not find the correct finding-region before searching for the condition pattern. (#153)
Co-authored-by: dinnm1 <dinnm1@student.op.ac.nz>
This commit is contained in:
Родитель
97ab63e2e7
Коммит
510d30be36
|
@ -123,7 +123,7 @@ namespace Microsoft.DevSkim
|
|||
{
|
||||
if (condition.Pattern is { })
|
||||
{
|
||||
bool res = line.MatchPattern(condition.Pattern, match, condition);
|
||||
bool res = textContainer.MatchPattern(condition.Pattern, translatedBoundary, condition);
|
||||
if (res && condition.NegateFinding)
|
||||
{
|
||||
passedConditions = false;
|
||||
|
|
Загрузка…
Ссылка в новой задаче