-
Notifications
You must be signed in to change notification settings - Fork 44
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
Invalid Parsing of Filenames with multiple period characters in 0.19.3 #517
Comments
Also occurs in 1.0.0-M3 |
Hello and thanks for reporting. My main question is: what is your main concern? Is it how the Path API works (e.g. what The reason I'm asking is because the current behaviour is semi-intended (the way An API-breaking way to do this would be to turn the For 0.19.x what |
Another option that is somewhat of a hack, but otherwise a pragmatic, low-risk improvement for 0.19.x at least would be to only parse compound suffixes known internally (e.g. There'd still be room then to come up with something more polished for 1.x (which is still a few weeks away). |
Deferring this fix to 1.0.0-M5 as the changes required to address this introduce a high risk for regressions for 0.19.x which will see its final (planned) release in a few days - and 1.0.0-M4 is also nearly ready for release. I also cannot reproduce anything that produces a stacktrace like the one you posted, do you have any additional detail on how you got that? A transformation with markdown documents containing multiple dots does succeed, the only issue is that the generated output names strip part of the name (e.g. There are clean ways to address this in 1.x, partly because we can reduce the need for compound suffixes and then safely change the behaviour of the path parser afterwards. It's also not highest priority, as using names with dots appears to be extremely rare (this is the first report in 11 years). |
What Happens: When using a filename with multiple
.
the parsing for file extension starts with the first.
instead of the last.Expected: .0.1.md correctly parses extension as
md
Version: 0.19.3
The text was updated successfully, but these errors were encountered: