From bee8d6b8c0c9fb243b527d1d12edca6be301b5bb Mon Sep 17 00:00:00 2001 From: Matthew Arbesfeld Date: Fri, 15 Aug 2014 13:32:58 -0700 Subject: [PATCH] Only strip iOS logs if they begin with a date --- tools/commands-cordova.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/commands-cordova.js b/tools/commands-cordova.js index 56b8b63026..bfe92e74a8 100644 --- a/tools/commands-cordova.js +++ b/tools/commands-cordova.js @@ -457,8 +457,10 @@ var execCordovaOnPlatform = function (localPath, platformName) { }; var iosMapper = function (line) { - // remove the prefix - line = line.replace(/^\S+\s\S+\s\S+\s/, ''); + if (line.match(/^[0-9]+-[0-9]+-[0-9].*/)) { + // if the line starts with the date, we remove the prefix + line = line.replace(/^\S+\s\S+\s\S+\s/, ''); + } return Log.format(Log.objFromText(line, { program: 'ios' }), { metaColor: 'cyan', color: true