stmux icon indicating copy to clipboard operation
stmux copied to clipboard

`-e <regex>` option not working

Open jimhigson opened this issue 1 year ago • 2 comments

Simple example:

npx stmux -- [ -e i_like_pancakes "yes Error" ]
  • expected: Should not be red, because nothing on the console matches our regex
  • actual: Is red.

LMK if you don't have time to fix this, I might be able to raise a PR

jimhigson avatar Feb 23 '24 10:02 jimhigson

Side issue - the error detection doesn't play nice with tsc since it prints "Found 0 errors." and it is possible but not obvious how to write a regex that matches non-zero numbers. Feature request - allow multiple regexes like: -e Error -e "! 0 errors"

jimhigson avatar Feb 23 '24 10:02 jimhigson

Yes, I'm ultra busy, so I would be glad if you could provide a PR...

rse avatar Feb 23 '24 21:02 rse