lib/pdd/sources.rb in pdd-0.15.4 vs lib/pdd/sources.rb in pdd-0.16

- old
+ new

@@ -44,10 +44,10 @@ list.exclude(f) end end end.to_a PDD.log.info "#{files.size} file(s) found" - types = [/^text\//, /application\/xml/] + types = [%r{^text/}, %r{application/xml}] files .select { |f| types.index { |re| @magic.file(f) =~ re } } .map do |file| VerboseSource.new( file,