mirror of
https://github.com/apache/jclouds.git
synced 2025-02-16 15:08:28 +00:00
Issue 425: added underscores to the permitted list
This commit is contained in:
parent
66509e2f99
commit
b80fa45ebb
@ -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('_'));
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user