Skip to content

Move the Regex utilities and pattern types out of regex.rs - #1349

Merged
mgomes merged 3 commits into
masterfrom
able/vibe-107-regex
Oct 31, 2026
Merged

mgomes merged 3 commits into
masterfrom
able/vibe-107-regex

Conversation

@mgomes

@mgomes mgomes commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator

VIBE-107. regex.rs held the Regex.match / replace / replace_all utilities, with their $name template expansion and replace loop, and the pattern types the parser builds. The parent was the biggest place to look for code that belongs to its children. No behavior change.

  • Assertion, Set, Part and Class move to regex/parse.rs.
  • The Utility functions move to a new regex/utility.rs, with the two tests that cover replace. The parent re-exports Utility, so callers are unchanged.

git diff --color-moved shows only moves, apart from pub(super) on the moved pattern types and Class::matches, and the import lines.

Assertion, Set, Part and Class are built by the parser and read by the
program and search, so they now live with the parser instead of the
parent module.
The Regex utility functions, with their $name template expansion and
replace loop, sat in the parent module. They now have their own child,
named for the Utility enum, and the parent keeps the limits and helpers
every child shares.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-31T20:03:07.340845Z 6c8d113 Manual request
🔒 Security Review ✅ Completed 2026-10-31T05:33:43.080341Z 32893f7 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@mgomes

mgomes commented Oct 31, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 6c8d113880

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@mgomes
mgomes merged commit d3b802b into master Oct 31, 2026
12 checks passed
@mgomes
mgomes deleted the able/vibe-107-regex branch October 31, 2026 20:56
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.

1 participant