Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let stripExtensions strip a file's only extension #371

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SupernaviX
Copy link

Fixes #370

Today, the addMany action won't strip a file's only extension (unless the file starts with a dot). This PR makes it so that when stripExtensions is an array (which it is by default, and is documented as), the given extension gets stripped even if it's the only one. The idea is that now, Dockerfile.hbs gets turned into Dockerfile (and .gitignore.hbs gets turned into .gitignore etc etc).

I left existing behavior alone if stripExtensions is true, because that'd turn like package.json into package which is probably wrong.

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.

addMany has strange behavior for files with only one extension
1 participant