X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/2c854e9952890a119750a187479eb2701107705f..9d27360314f8e4e9844cde4059f98fac52250d36:/cookbooks/wordpress/libraries/wordpress.rb?ds=inline diff --git a/cookbooks/wordpress/libraries/wordpress.rb b/cookbooks/wordpress/libraries/wordpress.rb index 8ebb1460c..f8046aaaa 100644 --- a/cookbooks/wordpress/libraries/wordpress.rb +++ b/cookbooks/wordpress/libraries/wordpress.rb @@ -13,7 +13,7 @@ class Chef def self.current_plugin_version(name) if svn_cat("http://plugins.svn.wordpress.org/#{name}/trunk/readme.txt") =~ /Stable tag:\s*([^\s\r]*)[\s\r]*/ - $1 + Regexp.last_match[1] else "trunk" end