xcraft-core-utils 4.22.2 → 4.22.3
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 +3 -2
- package/package.json +1 -1
package/lib/log.js
CHANGED
|
@@ -79,10 +79,11 @@ exports.decorate = function (mode, prefix, mod, log, maxWidth, stripBegin) {
|
|
|
79
79
|
|
|
80
80
|
/* Try to detect an embedded xLog */
|
|
81
81
|
if (embedded) {
|
|
82
|
-
const
|
|
82
|
+
const sep = ': ';
|
|
83
|
+
const limit = text.indexOf(sep);
|
|
83
84
|
beginEmbedded = text.substr(0, limit + 1);
|
|
84
85
|
text = text.substr(limit + 1);
|
|
85
|
-
textNoColor = textNoColor.substr(textNoColor.indexOf(
|
|
86
|
+
textNoColor = textNoColor.substr(textNoColor.indexOf(sep) + 1);
|
|
86
87
|
}
|
|
87
88
|
|
|
88
89
|
/* Retrieve the position of all ANSI colors. */
|