Fix jshint issue with `[^]` in regexp.