Don't need to capture the group.

This commit is contained in:
Parker Moore 2014-08-10 15:44:36 -04:00
parent 3264766762
commit 69cc414c1b
1 changed files with 1 additions and 1 deletions

View File

@ -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."