Improve yoast seo pasive detection regex #984

This commit is contained in:
ethicalhack3r
2016-08-16 17:20:52 +02:00
parent 2fc488b602
commit c291022753

View File

@@ -62,7 +62,7 @@ class WpPlugins < WpItems
wp_plugins.add('all-in-one-seo-pack', version: $1)
end
if body =~ /<!-- This site is optimized with the Yoast WordPress SEO plugin v([^\s]+) -/i
if body =~ /<!-- This site is optimized with the Yoast (?:WordPress )?SEO plugin v([^\s]+) -/i
wp_plugins.add('wordpress-seo', version: $1)
end