fix tests

This commit is contained in:
r888888888
2014-06-18 16:51:55 -07:00
parent f02f72fac1
commit f65691b5e6
9 changed files with 12 additions and 12 deletions

View File

@@ -34,7 +34,7 @@ module Downloads
if url =~ %r!(/img/.+?/.+?)_m.+$!
match = $1
url.sub!(match + "_m", match)
elsif url =~ %r!(/img/.+?/.+?)_s.+$! && url !~ %r!/img-inf/!
elsif url !~ %r!/img-inf/! && url =~ %r!(/img/.+?/.+?)_s.+$!
match = $1
url.sub!(match + "_s", match)
end