fix regexp warning: character class has duplicated range
Merge pull request #1244 from NARKOZ/regexp-warning

fix regexp warning: character class has duplicated range