diff --git a/app/models/review_app.rb b/app/models/review_app.rb index f3bfdca4..70cd0ce9 100644 --- a/app/models/review_app.rb +++ b/app/models/review_app.rb @@ -73,8 +73,8 @@ def computed_environment ] end - # replace underscores and downcase - not valid as subdomain + # replace dots & underscores and downcase - not valid as subdomain def sanitized_subject - subject.downcase.gsub('_', '-') + subject.downcase.gsub(/[._]/, '-') end end