You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ag...@apache.org on 2014/08/14 16:12:26 UTC

git commit: CB-7309 verify-archive incorrectly parses hash output on Windows

Repository: cordova-coho
Updated Branches:
  refs/heads/master c9b352695 -> 7737d3ed8


CB-7309 verify-archive incorrectly parses hash output on Windows

github: close #33


Project: http://git-wip-us.apache.org/repos/asf/cordova-coho/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-coho/commit/7737d3ed
Tree: http://git-wip-us.apache.org/repos/asf/cordova-coho/tree/7737d3ed
Diff: http://git-wip-us.apache.org/repos/asf/cordova-coho/diff/7737d3ed

Branch: refs/heads/master
Commit: 7737d3ed8fd2fd97c29da8ac9f1ec4621b8ae1f4
Parents: c9b3526
Author: sgrebnov <v-...@microsoft.com>
Authored: Thu Aug 14 15:15:13 2014 +0400
Committer: Andrew Grieve <ag...@chromium.org>
Committed: Thu Aug 14 10:11:53 2014 -0400

----------------------------------------------------------------------
 src/create-verify-archive.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-coho/blob/7737d3ed/src/create-verify-archive.js
----------------------------------------------------------------------
diff --git a/src/create-verify-archive.js b/src/create-verify-archive.js
index a7d5d53..871394d 100644
--- a/src/create-verify-archive.js
+++ b/src/create-verify-archive.js
@@ -139,5 +139,5 @@ function *computeHash(path, algo) {
 }
 
 function extractHashFromOutput(output) {
-    return output.replace(/.*?:/, '').replace(/\s*/g, '').toLowerCase();
+    return output.slice(output.lastIndexOf(':') + 1).replace(/\s*/g, '').toLowerCase();
 }