Commit 18f64bc

Anton Medvedev <anton@medv.io>
2021-07-12 15:55:11
Add colors to binaries with _.- symbols
1 parent cf31d2e
Changed files (1)
index.mjs
@@ -225,7 +225,7 @@ export class ProcessOutput extends Error {
 }
 
 function colorize(cmd) {
-  return cmd.replace(/^\w+(\s|$)/, substr => {
+  return cmd.replace(/^[\w_.-]+(\s|$)/, substr => {
     return chalk.greenBright(substr)
   })
 }