cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [08/50] [abbrv] git commit: Version check regexps should be case insensitive
Date Fri, 01 Nov 2013 01:27:03 GMT
Version check regexps should be case insensitive

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

Branch: refs/heads/2.9.x
Commit: dbdfab9d487567b64495deac61b4ba9ccbf0bcd7
Parents: 4871713
Author: albanf <alban.fonrouge@visma.com>
Authored: Fri Aug 9 14:46:14 2013 +0200
Committer: albanf <alban.fonrouge@visma.com>
Committed: Fri Aug 9 14:46:14 2013 +0200

----------------------------------------------------------------------
 wp7/bin/check_reqs.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/dbdfab9d/wp7/bin/check_reqs.js
----------------------------------------------------------------------
diff --git a/wp7/bin/check_reqs.js b/wp7/bin/check_reqs.js
index b483841..2b10e8c 100644
--- a/wp7/bin/check_reqs.js
+++ b/wp7/bin/check_reqs.js
@@ -80,7 +80,7 @@ function SystemRequiermentsMet() {
     var cmd = 'msbuild -version'
     var fail_msg = 'The command `msbuild` failed. Make sure you have the latest Windows Phone
SDKs installed, AND have the latest .NET framework added to your path (i.e C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319).'
     var output = check_command(cmd, fail_msg);
-    var msversion = output.match(/\.NET\sFramework\,\sversion\s4\.0/);
+    var msversion = output.match(/\.NET\sFramework\,\sversion\s4\.0/i);
     if (!msversion) {
         Log('Please install the .NET Framwork v4.0.30319 (in the latest windows phone SDK\'s).',
true);
         Log('Make sure the "msbuild" command in your path is pointing to  v4.0.30319 of msbuild
as well (inside C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319).', true);
@@ -91,7 +91,7 @@ function SystemRequiermentsMet() {
         cmd = 'git --version';
         fail_msg = 'The command `git` failed. Make sure you have git installed as well ad
in your PATH environment so the tool can use it';
         output = check_command(cmd, fail_msg);
-        var gitVersion = output.match(/git\sversion\s1\./);
+        var gitVersion = output.match(/git\sversion\s1\./i);
         if (!gitVersion) {
             Log('Please ensure you have at least git v1 installed and added to you PATH so
this tool can use it to get the latest codova.');
         }
@@ -113,4 +113,4 @@ if (args.Count() > 0) {
     }
 }
 
-SystemRequiermentsMet();
\ No newline at end of file
+SystemRequiermentsMet();


Mime
View raw message