Updates the theme detection pattern - Ref #816

This commit is contained in:
erwanlr
2015-05-01 09:50:20 +01:00
parent e6751e0d89
commit 227a39d2fa
2 changed files with 2 additions and 3 deletions

View File

@@ -30,7 +30,7 @@ class WpTheme < WpItem
response = Browser.get_and_follow_location(target_uri.to_s)
# https + domain is optional because of relative links
return unless response.body =~ %r{(?:https?://[^"']+)?/?([^/\s]+)/themes/([^"'/]+)[^"']*/style.css}i
return unless response.body =~ %r{(?:https?://[^"']+/)?([^/\s]+)/themes/([^"'/]+)[^"']*/style.css}i
new(
target_uri,