Skip to content

Implement regular expression search for context - #272

Merged
psss merged 3 commits into
mainfrom
context-regexp
Jan 7, 2025
Merged

psss merged 3 commits into
mainfrom
context-regexp

Conversation

@psss

@psss psss commented Jan 6, 2025 •

Copy link
Copy Markdown
Member

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
Comment thread fmf/context.py Resolved
psss added 2 commits January 6, 2025 18:32
Otherwise the new operator `~` matches other operators starting
with tilda, for example `~>=`.
@psss

psss commented Jan 6, 2025

Copy link
Copy Markdown
Member Author

@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

psss commented Jan 7, 2025

Copy link
Copy Markdown
Member Author

/packit build

@psss psss self-assigned this Jan 7, 2025
@psss
psss merged commit db640a0 into main Jan 7, 2025
@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