Skip to content

Commit deb0c19

Browse files
authored
updated strip_license_for_windows
1 parent 2e77f02 commit deb0c19

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

liccheck/command_line.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,9 @@ def get_licenses_from_classifiers(dist):
151151

152152
return []
153153

154-
def strip_license_for_windows(license):
155-
search_string = ".*\r$"
156-
if re.search(search_string, license):
157-
return license[:-2]
154+
def strip_license_for_windows(license):
155+
if license.endswith("\r"):
156+
return license[:-1]
158157
return license
159158

160159
def strip_license(license):

0 commit comments

Comments
 (0)