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

Hash placed in wrong location on file name when multiple periods in name #244

Closed
phazei opened this issue Jun 5, 2018 · 3 comments
Closed

Comments

@phazei
Copy link
Contributor

phazei commented Jun 5, 2018

I have files named:
site.subsite.js

when I use rev, instead of:
site.subsite-xxx.js
I get:
site-xxx.subsite.js

Is this a bug? Is there a work around?

@phazei phazei changed the title hash placed in wrong location on file hash placed in wrong location on file name Jun 5, 2018
@phazei phazei changed the title hash placed in wrong location on file name hash placed in wrong location on file name when multiple periods in name Jun 5, 2018
@phazei
Copy link
Contributor Author

phazei commented Jun 5, 2018

hmm, I think this can be worked around with #169

For this particular case though, I do feel like it should do that by default. I presume the original intention was to put the hash directly before the extension. So based on that, this could be considered a bug.

@sindresorhus
Copy link
Owner

Yeah, I think putting the hash before the last extension would be the best default behavior.

@sindresorhus sindresorhus changed the title hash placed in wrong location on file name when multiple periods in name Hash placed in wrong location on file name when multiple periods in name Jun 5, 2018
@phazei
Copy link
Contributor Author

phazei commented Jun 5, 2018

It did it right in v4. I'd just upgraded to v8 today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants