Skip to content

Commit

Permalink
use find instead of matches
Browse files Browse the repository at this point in the history
  • Loading branch information
le-jeu committed Jul 30, 2023
1 parent b5df21e commit 454e361
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1294,7 +1294,7 @@ public boolean isInternalHostname(String hostname) {
*/
public boolean isGoogleHostname(String hostname) {
if (hostname.startsWith("google.") || hostname.contains(".google.")) {
return mGoogleHostnamePattern.matcher(hostname).matches();
return mGoogleHostnamePattern.matcher(hostname).find();
}
return false;
}
Expand Down

0 comments on commit 454e361

Please sign in to comment.