diff --git a/spec/fixtures/db/dynamic_finders.yml b/spec/fixtures/db/dynamic_finders.yml index 1fa421c3..4df29e45 100644 --- a/spec/fixtures/db/dynamic_finders.yml +++ b/spec/fixtures/db/dynamic_finders.yml @@ -24379,8 +24379,15 @@ plugins: version: true wordpress-seo: Comment: + xpath: //comment()[contains(., 'Yoast')] pattern: !ruby/regexp '/optimized with the Yoast(?: WordPress)? SEO plugin v(?[^\s]+) - -|\/ Yoast WordPress SEO plugin\./i' + \-|\/ Yoast WordPress SEO plugin\./i' + version: true + wordpress-seo-premium: + Comment: + xpath: //comment()[contains(., 'Yoast')] + pattern: !ruby/regexp '/optimized with the Yoast SEO Premium plugin v(?[^\s]+) + \-|\/ Yoast SEO Premium plugin\./i' version: true wordpress-simple-paypal-shopping-cart: Comment: diff --git a/spec/fixtures/dynamic_finders/expected.yml b/spec/fixtures/dynamic_finders/expected.yml index bc623f74..934cb72a 100644 --- a/spec/fixtures/dynamic_finders/expected.yml +++ b/spec/fixtures/dynamic_finders/expected.yml @@ -30605,6 +30605,13 @@ plugins: interesting_entries: - 'http://wp.lab/, Match: ''optimized with the Yoast WordPress SEO plugin v1.7.3.3 -''' + wordpress-seo-premium: + Comment: + number: 9.5 + found_by: Comment (Passive Detection) + interesting_entries: + - 'http://wp.lab/, Match: ''optimized with the Yoast SEO Premium plugin v9.5 + -''' wordpress-simple-paypal-shopping-cart: Comment: number: 4.3.8 diff --git a/spec/fixtures/dynamic_finders/plugin_version/comment_passive_all.html b/spec/fixtures/dynamic_finders/plugin_version/comment_passive_all.html index b99c1bd8..b67a9099 100644 --- a/spec/fixtures/dynamic_finders/plugin_version/comment_passive_all.html +++ b/spec/fixtures/dynamic_finders/plugin_version/comment_passive_all.html @@ -245,7 +245,7 @@ Content-Type: text/html; charset=UTF-8 - + @@ -259,6 +259,10 @@ Content-Type: text/html; charset=UTF-8 + + + +