Skip to content

Commit

Permalink
Fix root path comparison
Browse files Browse the repository at this point in the history
Fixes #124
  • Loading branch information
vjpr authored and ixti committed Feb 3, 2014
1 parent 8cb6be3 commit 08781a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mincer/asset_attributes.js
Expand Up @@ -79,7 +79,7 @@ getter(AssetAttributes.prototype, 'logicalPath', function () {
var pathname = this.pathname, paths = this.environment.paths, root_path;

root_path = _.detect(paths, function (root) {
return root === pathname.substr(0, root.length);
return path.join(root, '/') === pathname.substr(0, root.length + 1);
});

if (!root_path) {
Expand Down

0 comments on commit 08781a0

Please sign in to comment.