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

Allow dots in value of public option #29

Merged
merged 4 commits into from
Jun 15, 2018

Conversation

andyburke
Copy link
Contributor

@andyburke andyburke commented Jun 14, 2018

This fixes vercel/serve#421.

This passes all tests.

It will still have problems with filenames that have no extension, but it addresses not allowing dots in the "public" folder setting.

@codecov
Copy link

codecov bot commented Jun 14, 2018

Codecov Report

Merging #29 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #29   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           1      1           
  Lines         280    278    -2     
=====================================
- Hits          280    278    -2
Impacted Files Coverage Δ
src/index.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b1679e5...ef81139. Read the comment docs.

@TooTallNate
Copy link
Member

@andyburke Hey there, thanks for the patch! Do you think we could add a regression test for this?

@leo leo changed the title allow dots in "public" path setting Allow dots in value of public option Jun 15, 2018
@leo leo added the enhancement New feature or request label Jun 15, 2018
@leo leo self-requested a review June 15, 2018 11:15
Copy link
Contributor

@leo leo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added the integration test

@leo leo merged commit aca05e8 into vercel:master Jun 15, 2018
@leo
Copy link
Contributor

leo commented Jun 15, 2018

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"public" folder setting with dot in folder name causes index.html not to be found
3 participants