From fc6e80a3cce9d00d3dbebefe29ce5400fe87f3e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Gonz=C3=A1lez?= Date: Tue, 2 Apr 2019 18:19:58 +0200 Subject: [PATCH] L #2603: Lintin code (#3168) --- src/cli/onezone | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/onezone b/src/cli/onezone index acf713042e..dc84c2a2ff 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