npm-watch
npm-watch copied to clipboard
fix how `prefix` is inserted into output
The line
can be a multiline string. This commit changes how the prefix
is inserted to use a multiline regular expression instead of prepending one to line
.
Fix for the bug reported in #17
Hrm, now I'm seeing double-prefixes...
Ping on the issue of seeing double [test]
.
The issue was related to https://github.com/mochajs/mocha/pull/2401. I implemented a more complete fix, but will only be able to push it up tomorrow or after the weekend
So basically after fighting with this a whole bunch, it would seem that our options are either no new lines, or extra ones at random spots due to pauses in piping.
Personally I feel lack of white space is less of an issue - but I would then make it opt-in and have the default use quite
(thanks to you @alxndr :smile: ) or inherit
#22
Exhibit A
Do you have any thoughts on this?