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 bug in global rules declared after normal rules #146

Merged
merged 1 commit into from
May 4, 2024

Conversation

vthib
Copy link
Owner

@vthib vthib commented May 4, 2024

When a global rule was declared before a normal rule, and both declared strings, the matches of the strings of the normal rule were used to evaluate the global rule.

This is fixed by splicing the variables of the global rules earlier in the variables vec, so that the whole variables vec respects the global_rules ++ rules order.

When a global rule was declared before a normal rule, and both declared
strings, the matches of the strings of the normal rule were used to
evaluate the global rule.

This is fixed by splicing the variables of the global rules earlier in
the variables vec, so that the whole variables vec respects the
global_rules ++ rules order.
@vthib vthib merged commit bce59c2 into master May 4, 2024
17 checks passed
@vthib vthib deleted the fix-global-rules-order branch May 4, 2024 23:14
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.

1 participant