File wheel_cve_2022_40898.patch of Package python-wheel.27352

--- wheel/wheelfile.py.orig
+++ wheel/wheelfile.py
@@ -14,8 +14,9 @@ from wheel.util import urlsafe_b64decode
 # Non-greedy matching of an optional build number may be too clever (more
 # invalid wheel filenames will match). Separate regex for .dist-info?
 WHEEL_INFO_RE = re.compile(
-    r"""^(?P<namever>(?P<name>.+?)-(?P<ver>.+?))(-(?P<build>\d[^-]*))?
-     -(?P<pyver>.+?)-(?P<abi>.+?)-(?P<plat>.+?)\.whl$""",
+    r"""^(?P<namever>(?P<name>[^\s-]+?)-(?P<ver>[^\s-]+?))
+    (-(?P<build>\d[^\s-]*))?-(?P<pyver>[^\s-]+?)-(?P<abi>[^\s-]+?)
+    -(?P<plat>\S+)\.whl$""",
     re.VERBOSE)
 
 
openSUSE Build Service is sponsored by