Issue 425: added underscores to the permitted list

This commit is contained in:
Adrian Cole 2010-12-10 08:48:58 +00:00
parent 66509e2f99
commit b80fa45ebb

View File

@ -69,10 +69,11 @@ public class BucketNameValidator extends DnsNameValidator {
}
/**
* Amazon also permits periods in the dns name
* Amazon also permits periods in the dns name.
* It also permits underscores, although they aren't recommended.
*/
@Override
protected CharMatcher getAcceptableRange() {
return super.getAcceptableRange().or(is('.'));
return super.getAcceptableRange().or(is('.')).or(is('_'));
}
}