Skip to content

fix: preserve sticky regex position in file-op substitutions - #149

Merged
PatrickSys merged 1 commit into
mainfrom
fix/regex-sub-sticky-20261205d
Dec 5, 2026
Merged

PatrickSys merged 1 commit into
mainfrom
fix/regex-sub-sticky-20261205d

Conversation

@PatrickSys

Copy link
Copy Markdown
Owner

Sticky regular expressions could modify the second match in a file or report a replacement without changing the file. The match check now preserves the regex position before the substitution.

To reproduce, put phasephase in note.txt in a scratch workspace and run node /path/to/bin/gsdd.mjs file-op regex-sub note.txt phase step --flags y from that workspace. On main the file becomes phasestep. With this fix it becomes stepphase and the command reports one replacement.

The full suite ran 2,161 tests across 38 files with 2,157 passed, 4 skipped, and 0 failed. The regression failed before the fix and passed afterward. The proof staleness check passed all 11 runners.

@vercel

vercel Bot commented Dec 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
workspine Ready Ready Preview Dec 5, 2026 9:18am UTC

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-05T09:19:52.577890Z 95db3ae 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.

@PatrickSys
PatrickSys merged commit e9813d4 into main Dec 5, 2026
4 checks passed
@PatrickSys
PatrickSys deleted the fix/regex-sub-sticky-20261205d branch December 5, 2026 09:30

This branch was successfully deployed

1 active deployment
Preview — 95db3aeb Deployed Dec 5, 2026 by vercel[bot]
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