lib/frameit/editor.rb in frameit-2.4.0 vs lib/frameit/editor.rb in frameit-2.4.1
- old
+ new
@@ -273,10 +273,10 @@
# Try to get it from a keyword.strings or title.strings file
strings_path = File.join(File.expand_path("..", screenshot.path), "#{type}.strings")
if File.exist? strings_path
parsed = StringsParser.parse(strings_path)
- result = parsed.find { |k, v| screenshot.path.include? k }
+ result = parsed.find { |k, v| screenshot.path.upcase.include? k.upcase }
return result.last if result
end
# No string files, fallback to Framefile config
result = fetch_config[type.to_s]['text'] if fetch_config[type.to_s]