Substitue whitespace in name
This commit is contained in:
parent
c69099c451
commit
63e9cd9b5f
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue