File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 11[tool .poetry ]
22name = " vulners"
3- version = " 2.3.1 "
3+ version = " 2.3.2 "
44description = " Python library and command-line utility for Vulners (https://vulners.com)"
55readme = " README.md"
66authors = [" Vulners Team" ]
Original file line number Diff line number Diff line change 11import io
22import json
3+ import re
34import warnings
45import zipfile
56
@@ -156,6 +157,8 @@ def find_exploit_all(
156157 Returns list of the documents.
157158 Use .total to get the total number of found documents.
158159 """
160+ if re .match (r"^CVE-\d{4}-\d+$" , (query := query .strip ()), re .IGNORECASE ):
161+ query = f'"{ query } "'
159162 if lookup_fields :
160163 search_query = "bulletinFamily:exploit AND (%s)" % (
161164 " OR " .join ('%s:"%s"' % (field , query ) for field in lookup_fields )
You can’t perform that action at this time.
0 commit comments