Fixes character range in search field pattern