Improves plugin/theme version detection by looking at the "Version: "- Fixes #732

This commit is contained in:
erwanlr
2014-12-05 18:11:49 +01:00
parent a8c55ddee3
commit c24ed707ef
3 changed files with 22 additions and 4 deletions

View File

@@ -13,7 +13,7 @@ class WpItem
# This check is needed because readme_url can return nil
if has_readme?
response = Browser.get(readme_url)
@version = response.body[%r{stable tag: #{WpVersion.version_pattern}}i, 1]
@version = response.body[%r{(?:stable tag|version): #{WpVersion.version_pattern}}i, 1]
end
end
@version