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

DirectoryServerResource variant detection does not support files with multiple . in their name #801

Open
lsimons opened this issue Nov 22, 2013 · 0 comments

Comments

@lsimons
Copy link

lsimons commented Nov 22, 2013

When using the TunnelService for its extension filter, there's a problem on this line:

With a filename like jquery-1.8.0.min.js, it ends up considering ".8.0.min.js" the variant, and "jquery-1" the base name, so discards that directory entry, resulting in the end in a 404.

The obvious fix for this one example is to use lastIndexOf("."), but I'm not sure that's really what's intended -- for example I don't know how cases such as foo.index.en.html should be taken care of.

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

3 participants