2
0
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:
edogawaconan
2014-08-23 17:54:43 +09:00
parent afba0b61a4
commit da373734c9
15 changed files with 110 additions and 110 deletions

View File

@@ -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