Skip to content
This repository was archived by the owner on Feb 14, 2018. It is now read-only.

Conversation

@yf-hk
Copy link

@yf-hk yf-hk commented Feb 2, 2015

If option hidden is set, I think it should also check that if any of the directory in the path is hidden. Otherwise something like /test/public/.git/config might also pass the filter which is apparently not right.

Since we shouldn't match the result in base path. For example '/var/.webroot/abc.txt'
fix the broken test. sorry it's a bit ugly used regex `look behind` (negative matching) clause
@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.46% when pulling db84414 on andyhu:patch-1 into ee9d7e8 on koajs:master.

@yf-hk
Copy link
Author

yf-hk commented Feb 2, 2015

Sorry, I couldn't fix the test. But hopefully you see the point

@yf-hk yf-hk changed the title Update index.js Files in hidden directories shouldn't be send to client Feb 2, 2015
@yf-hk yf-hk changed the title Files in hidden directories shouldn't be send to client Files in hidden directories shouldn't be sent to client Feb 2, 2015
@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.46% when pulling e59caec on andyhu:patch-1 into ee9d7e8 on koajs:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.46% when pulling e59caec on andyhu:patch-1 into ee9d7e8 on koajs:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 98.46% when pulling 7e80c32 on andyhu:patch-1 into ee9d7e8 on koajs:master.

@haoxins
Copy link
Member

haoxins commented Feb 3, 2015

@andyhu rebase with master, tests should be passed

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants