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

Implement regular expression search for context #272

Merged
merged 3 commits into from
Jan 7, 2025
Merged

Conversation

psss
Copy link
Collaborator

@psss psss commented Jan 6, 2025

Support new operator ~ for matching patterns and !~ for negative matching patterns in the context rules.

Fix #226.

Checklist

  • implement the feature
  • write the documentation
  • extend the test coverage
  • include a release note

Support new operator `~` for matching patterns and `!~` for
negative matching patterns in the context rules.

Fix #226.
@psss psss added the context label Jan 6, 2025
@psss psss added this to the 1.6 milestone Jan 6, 2025
fmf/context.py Outdated Show resolved Hide resolved
psss added 2 commits January 6, 2025 18:32
Otherwise the new operator `~` matches other operators starting
with tilda, for example `~>=`.
@psss
Copy link
Collaborator Author

psss commented Jan 6, 2025

@lukaszachy, I also had to modify the operator matching a bit in 80b4b6e as ~ matched other operators which start with tilda. Please, have a look if it's ok. Thanks.

@psss psss requested a review from lukaszachy January 6, 2025 17:34
@psss
Copy link
Collaborator Author

psss commented Jan 7, 2025

/packit build

@psss psss self-assigned this Jan 7, 2025
@psss psss merged commit db640a0 into main Jan 7, 2025
12 of 13 checks passed
@psss psss deleted the context-regexp branch January 7, 2025 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add operator for REGEX matching in context
4 participants