Substitue whitespace in name

v3-stable
Dennis Günnewig 2015-07-21 10:28:11 +02:00 committed by Thomas Reynolds
parent c69099c451
commit 63e9cd9b5f
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ module Middleman
class ServerHostname
class ServerFullHostname < SimpleDelegator
def to_s
__getobj__
__getobj__.gsub(/\s/, '+')
end
def self.match?(*)
@ -15,7 +15,7 @@ module Middleman
class ServerPlainHostname < SimpleDelegator
def to_s
__getobj__ + '.local'
__getobj__.gsub(/\s/, '+') + '.local'
end
def self.match?(name)