lib/i18n/tasks/scanners/pattern_scanner.rb in i18n-tasks-0.9.5 vs lib/i18n/tasks/scanners/pattern_scanner.rb in i18n-tasks-0.9.6

- old
+ new

@@ -12,10 +12,10 @@ include RubyKeyLiterals def initialize(**args) super @pattern = config[:pattern].present? ? Regexp.new(config[:pattern]) : default_pattern - @ignore_lines_res = (config[:ignore_lines] || []).inject({}) { |h, (ext, re)| h.update(ext => Regexp.new(re)) } + @ignore_lines_res = (config[:ignore_lines] || []).inject({}) { |h, (ext, re)| h.update(ext.to_s => Regexp.new(re)) } end protected # Extract i18n keys from file based on the pattern which must capture the key literal.