lib/nanoc/data_sources/filesystem.rb in nanoc-4.0.2 vs lib/nanoc/data_sources/filesystem.rb in nanoc-4.1.0a1

- old
+ new

@@ -190,10 +190,10 @@ end # Returns the extension(s) of filename. Supports multiple extensions. # Includes the leading period. def ext_of(filename) - filename =~ extension_regex ? $1 : '' + filename =~ extension_regex ? Regexp.last_match[1] : '' end # Returns a regex that is used for determining the extension of a file # name. The first match group will be the entire extension, including the # leading period.