Update messaging for guava 27.1
am: 485b019679
Change-Id: I39ed624add43b2c1d0a2ecb6d75fad7c091bd7b2
This commit is contained in:
@@ -160,7 +160,7 @@ public final class EmailAddress {
|
|||||||
// Host must not have any disallowed characters; allowI18n dictates whether
|
// Host must not have any disallowed characters; allowI18n dictates whether
|
||||||
// host must be ASCII.
|
// host must be ASCII.
|
||||||
if (!EMAIL_ALLOWED_CHARS.matchesAllOf(host)
|
if (!EMAIL_ALLOWED_CHARS.matchesAllOf(host)
|
||||||
|| (!allowI18n && !CharMatcher.ASCII.matchesAllOf(host))) {
|
|| (!allowI18n && !CharMatcher.ascii().matchesAllOf(host))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -182,7 +182,7 @@ public final class EmailAddress {
|
|||||||
// User must not have any disallowed characters; allow I18n dictates whether
|
// User must not have any disallowed characters; allow I18n dictates whether
|
||||||
// user must be ASCII.
|
// user must be ASCII.
|
||||||
if (!EMAIL_ALLOWED_CHARS.matchesAllOf(user)
|
if (!EMAIL_ALLOWED_CHARS.matchesAllOf(user)
|
||||||
|| (!allowI18n && !CharMatcher.ASCII.matchesAllOf(user))) {
|
|| (!allowI18n && !CharMatcher.ascii().matchesAllOf(user))) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user