Fix bug in no-control-regex (fixes #347)