Permalink
Browse files

update cmd-util

  • Loading branch information...
Hsiaoming Yang
Hsiaoming Yang committed Mar 16, 2013
1 parent af5c70c commit d3fd856f8d09072cd51da559db68d69744523b3f
Showing with 2 additions and 3 deletions.
  1. +1 −2 lib/install.js
  2. +1 −1 package.json
View
@@ -235,8 +235,7 @@ function copy(src, callback) {
var pkg = grunt.file.readJSON(path.join(src, 'package.json'));
var dest;
var format = spmrc.get('install.format');
- var regex = /^\{\{\s*family\s*\}\}\/\{\{\s*name\s*\}\}\/\{\{\s*version\s*\}\}\/\{\{\s*filename\s*\}\}$/;
- if (format && /\{\{\s*filename\s*\}\}$/.test(format) && !regex.test(format)) {
+ if (format && /\{\{\s*filename\s*\}\}$/.test(format) && !iduri.validateFormat(format)) {
dest = path.join(store.dest, iduri.idFromPackage(pkg, '', format));
} else {
dest = path.join(store.dest, pkg.family, pkg.name, pkg.version);
View
@@ -15,7 +15,7 @@
"request": "~2.16.2",
"colorful": "~1.2.0",
"commander": "~1.1.1",
- "cmd-util": "~0.3.1",
+ "cmd-util": "~0.3.2",
"uglify-js": "~2.2.5",
"graceful-fs": "1.2.0",

0 comments on commit d3fd856

Please sign in to comment.