Skip to content
This repository was archived by the owner on Oct 22, 2020. It is now read-only.

Commit b30af30

Browse files
committed
Simplify regex and support any amount of version identifiers
1 parent 26086a0 commit b30af30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/wpxf/wordpress/fingerprint.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def check_plugin_version_from_readme(name, fixed = nil, introduced = nil)
6262
# @return [Symbol] :unknown, :vulnerable or :safe.
6363
def check_plugin_version_from_changelog(plugin_name, file_name, fixed = nil, introduced = nil)
6464
changelog = normalize_uri(wordpress_url_plugins, plugin_name, file_name)
65-
check_version_from_custom_file(changelog, /=\s(\d\.\d(\.\d)?)\s=/, fixed, introduced)
65+
check_version_from_custom_file(changelog, /=\s([\d\.]+)\s=/, fixed, introduced)
6666
end
6767

6868
# Checks a custom file for a vulnerable version.

0 commit comments

Comments
 (0)