Skip to content

Commit

Permalink
Escape your dots.
Browse files Browse the repository at this point in the history
  • Loading branch information
kennethkufluk committed Aug 4, 2012
1 parent 0c6e1d4 commit 9de82ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/loadbuilder/asset.js
Expand Up @@ -197,7 +197,7 @@ function resolveRelativePath(id, mod) {
var parts = from.split('/'); parts.pop();
var dir = parts.join('/');
var filepath = path.join(dir, id);
return dir.length ? filepath : id;
return (dir.length && id.match(/^\./)) ? filepath : id;
}

module.exports = {
Expand Down

0 comments on commit 9de82ca

Please sign in to comment.