Skip to content

Commit 4586e94

Browse files
committed
rubocop --only Style/PerlBackrefs -a
1 parent 23bdc2a commit 4586e94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

beef

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ env_lang = ENV.fetch('LANG', nil)
9797
if env_lang !~ /(utf8|utf-8)/i
9898
print_warning "Warning: System language $LANG '#{env_lang}' does not appear to be UTF-8 compatible."
9999
if env_lang =~ /\A([a-z]+_[a-z]+)\./i
100-
country = $1
100+
country = Regexp.last_match(1)
101101
print_more "Try: export LANG=#{country}.utf8"
102102
end
103103
end

0 commit comments

Comments
 (0)