Only strip iOS logs if they begin with a date

This commit is contained in:
Matthew Arbesfeld
2014-08-15 13:32:58 -07:00
parent 606f0c6d86
commit bee8d6b8c0

View File

@@ -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