fix(reporter-default): don't dim decimal points in durations in the default reporter
This commit is contained in:
parent
1f139fd975
commit
2f6b4d23e0
2 changed files with 6 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ const spinner = interactive ? elegantSpinner() : () => figures.pointerSmall;
|
|||
const formatDuration = (duration: number): string => {
|
||||
const pretty = prettyMs(duration);
|
||||
|
||||
return yellow(pretty.replaceAll(/([^\s\d]+)/g, dim('$1')));
|
||||
return yellow(pretty.replaceAll(/([^\s\d.]+)/g, dim('$1')));
|
||||
};
|
||||
|
||||
const getTitle = ({ command, version, dry, cwd }: ReporterInitParameters) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue