Skip to content

Commit

Permalink
Merge branch 'master' of github.com:spmjs/spm2
Browse files Browse the repository at this point in the history
  • Loading branch information
lepture committed Jul 17, 2013
2 parents 1ffbaed + 8d37a25 commit ed1ae75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spm",
"version": "2.1.7",
"version": "2.1.8",
"preferGlobal": "true",
"description": "Static Package Manager",
"author": "Hsiaoming Yang <me@lepture.com>",
Expand Down Expand Up @@ -49,4 +49,4 @@
"scripts": {
"test": "make test"
}
}
}

0 comments on commit ed1ae75

Please sign in to comment.