more robust handling of deviant art urls
This commit is contained in:
@@ -112,8 +112,8 @@ module Sources
|
|||||||
"http://fav.me/d#{$1}"
|
"http://fav.me/d#{$1}"
|
||||||
elsif url =~ %r{\Ahttps?://www\.deviantart\.com/([^/]+)/art/}
|
elsif url =~ %r{\Ahttps?://www\.deviantart\.com/([^/]+)/art/}
|
||||||
url
|
url
|
||||||
elsif url =~ %r{deviantart\.com/art/}
|
elsif url !~ %r{\Ahttps?://(?:fc|th|pre|orig|img|www)\.} && url =~ %r{\Ahttps?://(.+?)\.deviantart\.com/?(.*)}
|
||||||
url
|
"https://www.deviantart.com/#{$1}/#{$2}"
|
||||||
else
|
else
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user