diff --git a/src/cli/onezone b/src/cli/onezone index acf713042e1..dc84c2a2ff3 100755 --- a/src/cli/onezone +++ b/src/cli/onezone @@ -114,7 +114,7 @@ CommandParser::CmdParser.new(ARGV) do exit(-1) end - if !%r/^(http|https):\/\//.match(options[:server_rpc]) + if !%r{^(http|https):\/\/}.match(options[:server_rpc]) puts 'Wrong protocol specified. Only http or https allowed!' exit(-1) end