re: ascii-themes - Node.js CLI Interface to Generate VSCode Themed ASCII Art VIEW POST

TOP OF THREAD FULL DISCUSSION
re: what's your OS and terminal app? you might have to escape that string. npx ascii-themes generate 'dev.to'

I'm a Mac OS with Oh My Zsh in the iTerm2:

 ibrahim.souza@Pudim  ~  npx ascii-themes generate 'dev.to'
npx: instalou 46 em 4.971s
Invalid regular expression flags
 ✘ ibrahim.souza@Pudim  ~  npx ascii-themes generate "dev.to"
npx: instalou 46 em 2.524s
Invalid regular expression flags

That is totally weird, the CLI doesn't throw that message, it's from somewhere deeper in the dependencies. I can't reproduce it, can you help me debug it please? Maybe even throw in a PR at github.com/AlexLakatos/ascii-themes

I'm guessing it tries to interpret the . in dev.to as regex. What happens if you try some text without the dot, like npx ascii-themes generate "devto"

code of conduct - report abuse