cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [2/2] cordova-windows git commit: Fixed regex used in getPackageFileInfo().
Date Fri, 05 Dec 2014 19:17:08 GMT
Fixed regex used in getPackageFileInfo().

The previous regex update fixed only versions with multiple digits in last part of version
number.

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

Branch: refs/heads/master
Commit: f5bb455d84197f1cc3eb04ab50eba915167746ac
Parents: 8082c33
Author: Michael Dudek <michael.dudek@centrum.cz>
Authored: Tue Nov 25 15:47:55 2014 +0100
Committer: Michael Dudek <michael.dudek@centrum.cz>
Committed: Tue Nov 25 15:47:55 2014 +0100

----------------------------------------------------------------------
 template/cordova/lib/package.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-windows/blob/f5bb455d/template/cordova/lib/package.js
----------------------------------------------------------------------
diff --git a/template/cordova/lib/package.js b/template/cordova/lib/package.js
index 6835fe0..561e5c4 100644
--- a/template/cordova/lib/package.js
+++ b/template/cordova/lib/package.js
@@ -67,7 +67,7 @@ module.exports.getPackageFileInfo = function (packageFile) {
     var pkgName = path.basename(packageFile);
     // CordovaApp.Windows_0.0.1.0_anycpu_debug.appx
     // CordovaApp.Phone_0.0.1.0_x86_debug.appxbundle
-    var props = /.*\.(Phone|Windows|Windows80)_((?:\d\.)*\d*)_(AnyCPU|x64|x86|ARM)(?:_(Debug))?.(appx|appxbundle)$/i.exec(pkgName);
+    var props = /.*\.(Phone|Windows|Windows80)_((?:\d*\.)*\d*)_(AnyCPU|x64|x86|ARM)(?:_(Debug))?.(appx|appxbundle)$/i.exec(pkgName);
     if (props) {
         return {type      : props[1].toLowerCase(),
             arch      : props[3].toLowerCase(),


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message