Repository: cordova-cli
Updated Branches:
  refs/heads/master 2a9ef8253 -> 150323053


CB-6211 'cordova info' command fixed for Windows platform

Reference to JIRA issue CB-6211, the cordova info command it doesn't
work.
Cause by:  Carriage return or new line.

Fixed removing that carriage return from the var 'type'.

github: close #137


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

Branch: refs/heads/master
Commit: 150323053b8a4a90532f7ec67616b2ae0cff93d3
Parents: 2a9ef82
Author: Martin Gonzalez <[email protected]>
Authored: Tue Mar 11 12:07:33 2014 -0600
Committer: Marcel Kinard <[email protected]>
Committed: Wed Mar 12 14:50:33 2014 -0400

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


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/15032305/src/info.js
----------------------------------------------------------------------
diff --git a/src/info.js b/src/info.js
index 983a8c3..0668cd5 100644
--- a/src/info.js
+++ b/src/info.js
@@ -39,7 +39,7 @@ module.exports = function info() {
 
     output = raw.map(function(line) {
         if(line.match('    %') ) {
-            var type = line.substr(5),
+            var type = (line.substr(5)).replace("\r",""),
                 out = "";
 
             switch(type) {
@@ -100,7 +100,7 @@ function doPlatforms( projectRoot ){
         for(i=0; i<platforms.length; i++){
             output += raw.map(function(line) {
                 if(line.match('    %') ) {
-                    var type = line.substr(5),
+                    var type = (line.substr(5)).replace("\r",""),
                         out = "";
 
                     switch(type) {

Reply via email to