Skip to content

fix: parse git grep lines for hyphenated paths without an extension#2156

Open
SAY-5 wants to merge 1 commit into
dandavison:mainfrom
SAY-5:fix/grep-hyphen-filename-no-extension
Open

fix: parse git grep lines for hyphenated paths without an extension#2156
SAY-5 wants to merge 1 commit into
dandavison:mainfrom
SAY-5:fix/grep-hyphen-filename-no-extension

Conversation

@SAY-5
Copy link
Copy Markdown

@SAY-5 SAY-5 commented May 13, 2026

When git grep matches a file whose path contains a hyphen and has no extension (e.g. foo-bar:content), delta previously parsed the first hyphen as a separator and rewrote it as a colon. This adds a colon-separated fallback regex that keeps the path intact, and un-ignores the existing test that covered this case. Closes #2144

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.

🐛 git grep output incorrect for files with hyphen in path

1 participant