Skip to content

Commit

Permalink
Fixes ignore_lines not working
Browse files Browse the repository at this point in the history
Refs #206
Thanks, @markedmondson!
  • Loading branch information
glebm committed Nov 1, 2016
1 parent e8db4a1 commit 6bc896f
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 6bc896f

Please sign in to comment.