Skip to content

Conversation

@Zaczero
Copy link
Member

@Zaczero Zaczero commented Jan 6, 2026

Motivation

Context


Add 👍 to pull requests you find important.

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

@Zaczero Zaczero requested a review from Ericson2314 as a code owner January 6, 2026 17:18
@github-actions github-actions bot added the store Issues and pull requests concerning the Nix store label Jan 6, 2026
@edolstra
Copy link
Member

edolstra commented Jan 6, 2026

Same as the other PRs, I think the regex is shorter and more "obviously correct" than the new code.

@Zaczero
Copy link
Member Author

Zaczero commented Jan 6, 2026

I didn't measure the performance impact. I'm in favor of regex eradication but I suppose it's up to the project preference.

};

std::regex regex1("^[0-9a-f]{2}$");
std::regex regex2("^[0-9a-f]{38}\\.debug$");
Copy link
Member

@Mic92 Mic92 Jan 13, 2026

Choose a reason for hiding this comment

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

in any case, those regexes could be potentially be re-used i.e. using static?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

store Issues and pull requests concerning the Nix store

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants