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

Grep newline safety #11111

Merged
merged 6 commits into from
Jul 25, 2024
Merged

Grep newline safety #11111

merged 6 commits into from
Jul 25, 2024

Conversation

roberth
Copy link
Member

@roberth roberth commented Jul 15, 2024

Motivation

Newlines in the query behave like OR; not "and then".

Context

Priorities and Process

Add 👍 to pull requests you find important.

The Nix maintainer team uses a GitHub project board to schedule and track reviews.

@roberth roberth requested a review from Ericson2314 July 15, 2024 23:54
@roberth roberth requested a review from edolstra as a code owner July 15, 2024 23:54
@github-actions github-actions bot added the with-tests Issues related to testing. PRs with tests have some priority label Jul 15, 2024
@Ericson2314
Copy link
Member

@GoldsteinE Great job with the other one. Would you like to review this?

Copy link
Contributor

@GoldsteinE GoldsteinE left a comment

Choose a reason for hiding this comment

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

LGTM! I don’t really understand how caller works, but otherwise it looks nice.

@roberth
Copy link
Member Author

roberth commented Jul 16, 2024

how caller works

It gives access to a stack trace basically. It's not the prettiest code I've written, but it has a test and it's not critical, so I think we'll be fine.
Seeing the call site in the error message is worth that bit of code, in my opinion.

Co-authored-by: tomberek <tomberek@users.noreply.github.com>
Co-authored-by: John Ericson <John.Ericson@Obsidian.Systems>
@roberth roberth enabled auto-merge July 25, 2024 13:38
@roberth roberth merged commit 76f04b4 into master Jul 25, 2024
20 checks passed
@roberth roberth deleted the grep-safety-AGAIN branch July 25, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
with-tests Issues related to testing. PRs with tests have some priority
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants