xcraft-core-utils 4.22.0 → 4.22.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/log.js +2 -2
- package/package.json +1 -1
package/lib/log.js
CHANGED
|
@@ -73,13 +73,13 @@ exports.decorate = function (mode, prefix, mod, log, maxWidth, stripBegin) {
|
|
|
73
73
|
|
|
74
74
|
let beginEmbedded = '';
|
|
75
75
|
let textNoColor = text.replace(ansiRegex(), '');
|
|
76
|
-
const embedded = /^[a-zA-Z]+ \[[a-zA-Z/.\-_]+\] (?:Verb|Info|Warn|Err|Dbg):/.test(
|
|
76
|
+
const embedded = /^[a-zA-Z]+ [0-9:]+ \[[a-zA-Z/.\-_]+\] (?:Verb|Info|Warn|Err|Dbg):/.test(
|
|
77
77
|
textNoColor
|
|
78
78
|
);
|
|
79
79
|
|
|
80
80
|
/* Try to detect an embedded xLog */
|
|
81
81
|
if (embedded) {
|
|
82
|
-
const limit = text.indexOf(':');
|
|
82
|
+
const limit = text.indexOf(': ');
|
|
83
83
|
beginEmbedded = text.substr(0, limit + 1);
|
|
84
84
|
text = text.substr(limit + 1);
|
|
85
85
|
textNoColor = textNoColor.substr(textNoColor.indexOf(':') + 1);
|