rubocop: fix code style

This commit is contained in:
Anatoliy Yastreb 2016-05-26 12:17:31 +03:00
parent 2caf8e0621
commit 001cbf2c07
2 changed files with 2 additions and 2 deletions

View File

@ -65,7 +65,7 @@ eos
def parse_options(input) def parse_options(input)
options = {} options = {}
if defined?(input) && input != "" unless input.empty?
# Split along 3 possible forms -- key="<quoted list>", key=value, or key # Split along 3 possible forms -- key="<quoted list>", key=value, or key
input.scan(/(?:\w="[^"]*"|\w=\w|\w)+/) do |opt| input.scan(/(?:\w="[^"]*"|\w=\w|\w)+/) do |opt|
key, value = opt.split("=") key, value = opt.split("=")

View File

@ -28,7 +28,7 @@ module Jekyll
@file = matched["variable"].strip @file = matched["variable"].strip
@params = matched["params"].strip @params = matched["params"].strip
else else
@file, @params = markup.strip.split(" ", 2) @file, @params = markup.strip.split(/\s+/, 2)
end end
validate_params if @params validate_params if @params
@tag_name = tag_name @tag_name = tag_name