mirror of
https://github.com/bower/bower.git
synced 2026-04-24 03:00:19 -04:00
CS.
This commit is contained in:
@@ -817,14 +817,12 @@ Package.prototype.resolveShorthand = function (shorthand, path) {
|
||||
shorthand = hogan.compile(shorthand);
|
||||
|
||||
var parts = path.split('/');
|
||||
var data = {
|
||||
|
||||
return shorthand.render({
|
||||
organization: parts[0],
|
||||
package: parts[1],
|
||||
endpoint: path
|
||||
};
|
||||
var result = shorthand.render(data);
|
||||
|
||||
return result;
|
||||
});
|
||||
};
|
||||
|
||||
Package.prototype.__defineGetter__('localPath', function () {
|
||||
|
||||
Reference in New Issue
Block a user