DEV Community

Discussion on: ascii-themes - Node.js CLI Interface to Generate VSCode Themed ASCII Art

 
ibrahimcesar profile image
Ibrahim Cesar

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
Thread Thread
 
lakatos88 profile image
Alex Lakatos 🥑 • Edited

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"