Skip to content

Commit

Permalink
bugfix for module name cant be uppercase letter
Browse files Browse the repository at this point in the history
  • Loading branch information
afc163 committed Jul 16, 2013
1 parent 68c341e commit 44cb9fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sdk/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ exports.plainDependencies = plainDependencies;

function parseIdentify(id) {
if (!id) return {};
var regex = /^((?:[a-z][a-z0-9\-]*\/)?[a-z][a-z0-9\-]*)\/(\d+\.\d+\.\d+)\/([a-zA-Z0-9\-\/\.]+)$/;
var regex = /^((?:[a-z][a-z0-9\-]*\/)?[a-zA-Z][a-zA-Z0-9\-]*)\/(\d+\.\d+\.\d+)\/([a-zA-Z0-9\-\/\.]+)$/;
var match = id.match(regex);
if (!match) return null;
var keys = match[1].split('/');
Expand Down

0 comments on commit 44cb9fa

Please sign in to comment.