Fix: Adding regexp literal exception (fixes #1589)

Took longer than expected due to the holidays and the fact that my `~/.eslintrc` was throwing off eslint's validation step in `npm test`.
And here