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

Allow a rule to be skipped from the getAttributes callback #1625

Merged
merged 1 commit into from
Jul 26, 2021

Conversation

joevallender
Copy link
Contributor

For example: you are matching URLs with a Regex but want to make additional checks on the match array before deciding if you want to apply the mark or not. Returning null or false won't attempt to apply the mark.

Currently the return value of getAttributes is applied unconditionally. So this is somewhere between a feature request and a bug fix.

For example: you are matching URLs with a Regex but want to make additional checks on the match array before deciding if you want to apply the mark or not. Returning null or false won't attempt to apply the mark. Currently the return value of getAttributes is applied unconditionally.
@philippkuehn philippkuehn merged commit 9ffd58c into ueberdosis:main Jul 26, 2021
@philippkuehn
Copy link
Contributor

makes sense. thank you!

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