jnicklas/carrierwave — pull request #809 by DouweM (2012-08-09 23:03:08+00:00)
Title: Also use AWS S3 subdomain URL when directory name contains a period.

See #285 for info about the difference between AWS subdomain URLs (`https://#{bucket_name}.s3.amazonaws.com`) and path URLs (`https://s3.amazonaws.com/#{bucket_name}`).

Currently, the subdomain URL is not being used for buckets with a name containing a period like `assets.example.com`, while Amazon is perfectly fine with this and while this is actually required for buckets outside of the US Standard zone.

This pull request modifies the regular expression to allow this.