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

Fix errors with index handling; permit multiple indexes. #98

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
Prev Previous commit
Next Next commit
Put the '.' back on extension types.
smcmurray committed Mar 22, 2018
commit d64ba007fd9a4be695bc8a0db84a4c3f12cb9397
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -161,7 +161,7 @@ function extendedPath(path, extensions){
throw new TypeError('option extensions must be array of strings or false')
}
ext.replace(/^\./, '')
paths.push({path: [path,ext].join('.'), ext})
paths.push({path: [path,ext].join('.'), ext:'.'+ext})
}
}
return paths