Don't need to capture the group.
This commit is contained in:
parent
3264766762
commit
69cc414c1b
|
@ -120,7 +120,7 @@ module Jekyll
|
|||
case File.extname(filename)
|
||||
when /\.toml/i
|
||||
TOML.load_file(filename)
|
||||
when /\.y(a)?ml/i
|
||||
when /\.ya?ml/i
|
||||
SafeYAML.load_file(filename)
|
||||
else
|
||||
raise ArgumentError, "No parser for '#{filename}' is available. Use a .toml or .y(a)ml file instead."
|
||||
|
|
Loading…
Reference in New Issue