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

Warn if extension is passed with a leading dot #636

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

max-sixty
Copy link
Collaborator

@max-sixty max-sixty commented Oct 4, 2024

If someone passes .snap as an extension, they'll get files of foo..snap, which is probably not what they want.

We could strip the leading .

Also some light refactoring

If someone passes `.snap` as an extension, they'll get files of `foo..snap`, which is probably not what they want.

We could strip the leading `.`
@max-sixty max-sixty merged commit 379fbe4 into mitsuhiko:master Oct 4, 2024
15 checks passed
@max-sixty max-sixty deleted the warn-extension branch October 4, 2024 06:09
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