Do proper reset on enter of match group
Merge branch 'master' of github.com:jviereck/regexp.js