Skip to content
Browse files

bug fix #2 #3 #4

  • Loading branch information...
1 parent 059b54a commit ea4aea55f73db5e8890744cf177323ff5adc0c74 @Diullei Diullei committed Jan 24, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 deploy/tsd.js
  2. +1 −1 src/Command/UpdateCommand.ts
View
2 deploy/tsd.js
@@ -915,7 +915,7 @@ var Command;
}
for(var i = 0; i < files.length; i++) {
var file = files[i].substr(_this.cfg.localPath.length + 1);
- var name = file.substr(0, file.lastIndexOf('-'));
+ var name = file.substr(0, file.lastIndexOf('.'));
var version = file.substr(name.length + 1, file.length - name.length - 7);
var key = System.IO.FileManager.handle.readFile(files[i]);
var flg = false;
View
2 src/Command/UpdateCommand.ts
@@ -38,7 +38,7 @@ module Command {
var file = files[i].substr(this.cfg.localPath.length + 1);
//if (file.substr(file.length - 5) == 'd.key') {
- var name = file.substr(0, file.lastIndexOf('-'));
+ var name = file.substr(0, file.lastIndexOf('.'));
var version = file.substr(name.length + 1, file.length - name.length - 7);
var key = System.IO.FileManager.handle.readFile(files[i]);

0 comments on commit ea4aea5

Please sign in to comment.
Something went wrong with that request. Please try again.