diff --git a/lib/cloud_convert/process.rb b/lib/cloud_convert/process.rb index 8bf7daa..012976a 100644 --- a/lib/cloud_convert/process.rb +++ b/lib/cloud_convert/process.rb @@ -122,7 +122,7 @@ def create_parsed_response(variable_symbol, parsed_response) end def extract_subdomain_from_url(url) - return url.split(".")[0].tr('/','') + return url.scan(/[^\/]*(?=\.#{CloudConvert::DOMAIN})/).first end def convert_response(response)