lib/i18n/tasks/scanners/pattern_scanner.rb in i18n-tasks-0.7.7 vs lib/i18n/tasks/scanners/pattern_scanner.rb in i18n-tasks-0.7.8

- old
+ new

@@ -15,10 +15,10 @@ src_pos = Regexp.last_match.offset(0).first key = match_to_key(match, path) next unless valid_key?(key, strict) key = key + ':' if key.end_with?('.') location = src_location(path, text, src_pos) - unless exclude_line?(location[:line]) + unless exclude_line?(location[:line], path) keys << [key, data: location] end end keys end