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`.
This check won't work in all cases. It's better to check for the special `node.object.regex` property, which always works.