Better pattern for #1692
This commit is contained in:
@@ -59,7 +59,7 @@ module WPScan
|
||||
#
|
||||
# @return [ String, nil ] The best version number detected from the changelog section
|
||||
def from_changelog_section(body)
|
||||
extracted_versions = body.scan(/=+\s+(?:v(?:ersion)?\s*)?([0-9.-]+)[^=]*=+[\r\n]/i)
|
||||
extracted_versions = body.scan(/^=+\s+(?:v(?:ersion)?\s*)?([0-9.-]+)[^=]*=+$/i)
|
||||
|
||||
return if extracted_versions.nil? || extracted_versions.empty?
|
||||
|
||||
|
||||
@@ -31,6 +31,14 @@ Install via the WordPress admin or...
|
||||
|
||||
== Frequently Asked Questions ==
|
||||
|
||||
== test ==
|
||||
1.2
|
||||
==
|
||||
|
||||
== test ==
|
||||
1.3
|
||||
bb =
|
||||
|
||||
= I got locked out, what do I do? =
|
||||
|
||||
Simple answer: wait. The lockdown will clear in the time you specified, just visit the site again later.
|
||||
|
||||
Reference in New Issue
Block a user