Fix deviantart regex bugs

This commit is contained in:
Toks
2014-04-28 15:45:11 -04:00
parent cc3c6d989f
commit 0cba44e3bf
2 changed files with 6 additions and 6 deletions

View File

@@ -2,7 +2,7 @@ module Sources
module Strategies
class DeviantArt < Base
def self.url_match?(url)
url =~ /^https?:\/\/(?:\w+\.)?deviantart\.(?:com|net)/
url =~ /^https?:\/\/(?:.+?\.)?deviantart\.(?:com|net)/
end
def site_name
@@ -10,7 +10,7 @@ module Sources
end
def unique_id
profile_url =~ /https?:\/\/(\w+)\.deviantart\.com/
profile_url =~ /https?:\/\/(.+?)\.deviantart\.com/
"deviantart" + $1
end