Fix: Adding regexp literal exception (fixes #1589)