Skip to content

Commit

Permalink
Fix license file regex
Browse files Browse the repository at this point in the history
  • Loading branch information
m0Ray authored and fyhertz committed May 16, 2023
1 parent 8134f7d commit 00f687e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wheel2deb/pydist.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ class Record:
Entries of *.dist-info/RECORD organized in categories
"""

LICENSE_RE = re.compile(r"license", re.IGNORECASE)
LICENSE_RE = re.compile(r"(^|[^\w])license(\..*)?$", re.IGNORECASE)
SHLIBS_RE = re.compile(r"\.so[.\d]*")

libs = attr.ib(factory=list)
Expand Down

0 comments on commit 00f687e

Please sign in to comment.