Skip to content

Commit

Permalink
[JBIDE-14570] fixed domain name validation error msg (Max -> Maximum)
Browse files Browse the repository at this point in the history
  • Loading branch information
adietish committed May 22, 2013
1 parent 6e0416b commit 64383be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -92,15 +92,15 @@ protected IStatus validate() {
}
if (domainName.isEmpty()) {
return ValidationStatus.cancel(
"Enter a domain name with letters and digits only. Max length is 16 characters.");
"Enter a domain name with letters and digits only. Maximum length is 16 characters.");
}
if (!StringUtils.isAlphaNumeric(domainName)) {
return ValidationStatus.error(
"The domain name may only contain letters and digits.");
}
if (domainName.length() > 16) {
return ValidationStatus.error(
"The domain name max length is 16 characters.");
"The domain name maximum length is 16 characters.");
}
return ValidationStatus.ok();
}
Expand Down
Expand Up @@ -109,15 +109,15 @@ protected IStatus validate() {
final String domainName = (String) domainNameObservable.getValue();
if (domainName.isEmpty()) {
return ValidationStatus.cancel(
"Enter a domain name with letters and digits only. Max length is 16 characters.");
"Enter a domain name with letters and digits only. Maximum length is 16 characters.");
}
if (!StringUtils.isAlphaNumeric(domainName)) {
return ValidationStatus.error(
"The domain name may only contain letters and digits.");
}
if (domainName.length() > 16) {
return ValidationStatus.error(
"The domain name max length is 16 characters.");
"The domain name maximum length is 16 characters.");
}
return ValidationStatus.ok();
}
Expand Down

0 comments on commit 64383be

Please sign in to comment.