Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rules bug #159

Merged
merged 4 commits into from
Oct 1, 2020
Merged

Fix rules bug #159

merged 4 commits into from
Oct 1, 2020

Conversation

martin308
Copy link
Member

There was a bug where we checked the matched length inside the condition loop. This moves that check outside of the condition loop and ensures that we stop looking at spans once a condition has been matched

Move the matched logic outside of the condition loop. Stop evaluating spans once a condition has been matched to ensure that we can use the count of matched conditions correctly
@martin308 martin308 requested a review from a team October 1, 2020 13:51
@martin308 martin308 mentioned this pull request Oct 1, 2020
@martin308 martin308 merged commit 0d2fa84 into main Oct 1, 2020
@martin308 martin308 deleted the martin308.rules-bug branch October 1, 2020 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants