Fix warning about hyphen in regex