Skip to content

Commit

Permalink
Update pattern_scanner.rb
Browse files Browse the repository at this point in the history
Stringify extensions so the exclude line matcher finds them
  • Loading branch information
markedmondson authored Nov 1, 2016
1 parent e8db4a1 commit 17925c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/i18n/tasks/scanners/pattern_scanner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class PatternScanner < FileScanner
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
Expand Down

0 comments on commit 17925c4

Please sign in to comment.