Skip to content

Fix the pre-commit files regex pattern#411

Closed
kurtmckee wants to merge 1 commit intocitation-file-format:mainfrom
kurtmckee:fix-pre-commit-regex
Closed

Fix the pre-commit files regex pattern#411
kurtmckee wants to merge 1 commit intocitation-file-format:mainfrom
kurtmckee:fix-pre-commit-regex

Conversation

@kurtmckee
Copy link
Copy Markdown
Contributor

The bare . matches any single character, which allowed for a file named e.g. CITATION-cff to match in an external repo, but then cffconvert would throw an error that CITATION.cff could not be found.

This is fixed by escaping the . in the files regex pattern so that only a file named exactly CITATION.cff will match.

The bare `.` matches any single character, which allowed for
a file named e.g. `CITATION-cff` to match in an external repo,
but then cffconvert would throw an error that `CITATION.cff`
could not be found.

This is fixed by escaping the `.` in the `files` regex pattern
so that only a file named exactly `CITATION.cff` will match.
@kurtmckee
Copy link
Copy Markdown
Contributor Author

Closing due to a lack of feedback.

@kurtmckee kurtmckee closed this Feb 23, 2026
@kurtmckee kurtmckee deleted the fix-pre-commit-regex branch February 23, 2026 16:58
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