cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject [18/32] git commit: windows8. fixes version number parsing logic
Date Fri, 06 Dec 2013 01:13:34 GMT
windows8. fixes version number parsing logic


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

Branch: refs/heads/fireos
Commit: e325e5dd63a31c30cd0b493e6b56b0816f341094
Parents: 3a53c22
Author: sgrebnov <sergei.grebnov@gmail.com>
Authored: Wed Dec 4 13:53:05 2013 +0400
Committer: Jesse MacFadyen <purplecabbage@gmail.com>
Committed: Wed Dec 4 13:09:46 2013 -0800

----------------------------------------------------------------------
 src/metadata/windows8_parser.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/e325e5dd/src/metadata/windows8_parser.js
----------------------------------------------------------------------
diff --git a/src/metadata/windows8_parser.js b/src/metadata/windows8_parser.js
index f8e0776..e85b86f 100644
--- a/src/metadata/windows8_parser.js
+++ b/src/metadata/windows8_parser.js
@@ -296,8 +296,8 @@ module.exports.prototype = {
 
     // Adjust version number as per CB-5337 Windows8 build fails due to invalid app version
       
     fixConfigVersion: function (version) {
-        if(version && version.match(/\.d/g)) {
-            var numVersionComponents = version.match(/\.d/g).length + 1;
+        if(version && version.match(/\.\d/g)) {
+            var numVersionComponents = version.match(/\.\d/g).length + 1;
             while (numVersionComponents++ < 4) {
                 version += '.0';
             }


Mime
View raw message