[PR #2203] make @file references in custom slash commands more robust #10230

Closed
opened 2026-02-16 18:14:51 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/2203

State: closed
Merged: Yes


The regular expression which was extracting file paths prefixed by @ from custom command text was too simplistic and created bugs. This PR makes it correctly handle several cases. See https://regex101.com/r/F6KAgH/ for examples.

Fixes #2198.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/2203 **State:** closed **Merged:** Yes --- The regular expression which was extracting file paths prefixed by `@` from custom command text was too simplistic and created bugs. This PR makes it correctly handle several cases. See https://regex101.com/r/F6KAgH/ for examples. Fixes #2198.
yindo added the pull-request label 2026-02-16 18:14:51 -05:00
yindo closed this issue 2026-02-16 18:14:51 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10230