rubocop: fix code style
This commit is contained in:
		
							parent
							
								
									2caf8e0621
								
							
						
					
					
						commit
						001cbf2c07
					
				|  | @ -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("=") | ||||||
|  |  | ||||||
|  | @ -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 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue