use [ansi-regex](https://github.com/sindresorhus/ansi-regex)