lib: replace `String.has(Char)` with `String.has(Pattern)`