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

fix(cli): prevent truncation of components if basename contains dots #913

Merged
merged 2 commits into from Jun 29, 2022

Conversation

ivan-aksamentov
Copy link
Member

Resolves: #907

This rolls an in-house version of add_extension() function which always adds an extension to a PathBuf. This is different from PathBuf::with_extension() which may replace or add extension depending on what the path is.

This solves a problem with basenames containing dots, as described in the issue: PathBuf::with_extension() thought that they are extensions and replaced the last one. But we always want to add, not replace.

Resolves: #907

This rolls an in-house version of `add_extension()` function which always adds an extension to a `PathBuf`.  This is different from `PathBuf::with_extension()` which may replace or add extension depending on what the path is.

This solves a problem with basenames containing dots, as described in the issue: `PathBuf::with_extension()` thought that they are extensions and replaced the last one. But we always want to add, not replace.
@vercel
Copy link

vercel bot commented Jun 29, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
nextclade ✅ Ready (Inspect) Visit Preview Jun 29, 2022 at 7:13PM (UTC)

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.

Last component of output base names containing multiple periods is dropped
1 participant