See #830 & #867. It’d be better to check that the argument is `Pattern` instead of `self` is `&str` in `SINGLE_CHAR_PATTERN`.