Permalink
Browse files

[fix] not only support numeric builds

  • Loading branch information...
1 parent 35e2fbd commit d25d84af2b1a0ecca54ac07ee4ed2f951c91d834 @fb55 fb55 committed Aug 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/require-analyzer.js
View
@@ -641,7 +641,7 @@ analyzer.extractVersions = function (dependencies) {
var raw = dependencies[pkg] || '*',
parse = semver.expressions.parse.exec(raw.trim()),
version = parse ? parse.slice(1) : raw,
- build = version ? version[3] : null;
+ build = version ? version[3] || version[4] : null;
if (!/^[v\d]+/.test(raw)) {
all[pkg] = raw;
}

0 comments on commit d25d84a

Please sign in to comment.