Skip to content

Commit 488dc22

Browse files
committed
Fix Rubocop offenses
1 parent e1d9c78 commit 488dc22

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/i18n_tasks/coffee_erb_locale_matcher.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class CoffeeErbLocaleMatcher < I18n::Tasks::Scanners::FileScanner
1010
# @return [Array<[absolute key, Results::Occurrence]>]
1111
def scan_file(path)
1212
text = read_file(path)
13-
text.scan(/I18n\.t\(['"]([\.\w]*)["'].*\)/).map do |match|
13+
text.scan(/I18n\.t\(['"]([.\w]*)["'].*\)/).map do |match|
1414
occurrence = occurrence_from_position(
1515
path, text, Regexp.last_match.offset(0).first
1616
)

lib/i18n_tasks/slim_row_locale_matcher.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class SlimRowLocaleMatcher < I18n::Tasks::Scanners::FileScanner
1616
# @return [Array<[absolute key, Results::Occurrence]>]
1717
def scan_file(path)
1818
text = read_file(path)
19-
text.scan(/row\(.*label:\s*['"]([\.\w]*)["'].*\)/).map do |match|
19+
text.scan(/row\(.*label:\s*['"]([.\w]*)["'].*\)/).map do |match|
2020
occurrence = occurrence_from_position(
2121
path, text, Regexp.last_match.offset(0).first
2222
)

0 commit comments

Comments
 (0)