lib/revs-utils.rb in revs-utils-1.0.8 vs lib/revs-utils.rb in revs-utils-1.0.9
- old
+ new
@@ -144,20 +144,25 @@
end
return row
end
+ # check a single format single and fix some common issues
def revs_check_format(format)
return revs_check_formats([format]).first
end
- # check the incoming format and fix some common issues
+ # check the incoming array of formats and fix some common issues
def revs_check_formats(format)
known_fixes = {"black-and-white negative"=>"black-and-white negatives",
"color negative"=>"color negatives",
"slides/color transparency"=>"color transparencies",
"color negatives/slides"=>"color negatives",
"black-and-white negative strips"=>"black-and-white negatives",
+ "black and white"=>"black-and-white negatives",
+ "black-and-white"=>"black-and-white negatives",
+ "black and white negative"=>"black-and-white negatives",
+ "black and white negatives"=>"black-and-white negatives",
"color transparency"=>"color transparencies",
"slide"=>"slides"
}
count = 0
format.each do |f|