lib/i18n/tasks/scanners/pattern_scanner.rb in i18n-tasks-1.0.9 vs lib/i18n/tasks/scanners/pattern_scanner.rb in i18n-tasks-1.0.10
- old
+ new
@@ -64,10 +64,10 @@
absolute_key(strip_literal(match[0]), path,
calling_method: -> { closest_method(location) if key_relative_to_method?(path) })
end
def exclude_line?(line, path)
- re = @ignore_lines_res[File.extname(path)[1..-1]]
+ re = @ignore_lines_res[File.extname(path)[1..]]
re && re =~ line
end
VALID_KEY_RE_DYNAMIC = /^(#{VALID_KEY_CHARS}|[:\#{@}\[\]])+$/.freeze