fix css 'enable key events' overflow
fix do not allow regular expressions that can match 0 characters. Closes #42