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

feat: Rule filter support #35

Merged
merged 1 commit into from
Jul 16, 2024
Merged

feat: Rule filter support #35

merged 1 commit into from
Jul 16, 2024

Conversation

going-confetti
Copy link
Collaborator

No description provided.

case 'parameterization':
case 'verification': {
const { filter } = rule
return request.url.toLowerCase().includes(filter.path.toLowerCase())
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This like is identical to 37, so the switch block can be rewritten to only extract the filter value. However, it will change as soon as we add correlation replacers, so I'd probably leave it as is for now. Definitely open to other opinions tho 👍

Copy link
Collaborator

@e-fisher e-fisher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@going-confetti going-confetti requested a review from Llandy3d July 16, 2024 10:58
Copy link
Member

@Llandy3d Llandy3d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 🚀

@going-confetti going-confetti merged commit e7e2386 into main Jul 16, 2024
1 check passed
@going-confetti going-confetti deleted the feat--Rule-filter branch July 16, 2024 12:09
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.

3 participants