walmartlabs/static — Issue #5: Make static.file(string) look at start of working path
Author: syntacticx
Created: 2012-02-05 05:07:00+00:00
State: open

Right now this recursively matches all README.md files (for instance, inside all node_module directories)

static.file('README.md',function(){})

Instead you need to write:

static.file(/^README\.md$/, function(){})

to get the desired behavior. The later should be assumed when using a string.