Skip to content

Conversation

@WillForan
Copy link
Contributor

The default readme regexp is very liberal. So much so, it captures vim swap files for me. Is it reasonable to require the filename not have extra characters before or after the matching pattern?

I can imagine forcing ^ could be to strict if filename includes additional path information. but I think $ should always be reasonable. (and would avoid any vim .swp.

And maybe it's entirely unnecessary. I can specify readme.md as a CLI argument if i'm worried about swap files.

@sindresorhus sindresorhus merged commit 6559118 into sindresorhus:main Jan 1, 2024
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.

2 participants