mirror of
https://github.com/moebooru/moebooru
synced 2025-09-05 08:25:10 +00:00
Avoid the use of Perl-style backrefs.
Rubocop(tm).
This commit is contained in:
@@ -16,7 +16,7 @@ module QueryParser
|
||||
|
||||
parsed_query.each do |token|
|
||||
if token =~ /^(.+?):(.+)$/
|
||||
hoge[1][$1] = $2
|
||||
hoge[1][Regexp.last_match[1]] = Regexp.last_match[2]
|
||||
else
|
||||
hoge[0] << token
|
||||
end
|
||||
|
Reference in New Issue
Block a user