Ignores potential non version chars in theme version detection - Fixes #816

This commit is contained in:
erwanlr
2015-05-01 09:56:18 +01:00
parent 54f31ebe7f
commit 0d806e6d74
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
class WpTheme < WpItem
module Versionable
def version
@version ||= Browser.get(style_url).body[%r{Version:\s*([^\s]+)}i, 1]
@version ||= Browser.get(style_url).body[%r{Version:\s*(?!trunk)([0-9a-z\.-]+)}i, 1]
end
end
end