fix strip

pull/94/head
eric 2019-07-01 17:21:22 -04:00
parent 917d90aee1
commit ac599f5d69
1 changed files with 1 additions and 1 deletions

View File

@ -162,7 +162,7 @@ def match_license(license_string):
pass
lic = MATCH_CC_LICENSE.search(license_string)
if lic:
return 'CC{}'.format(lic.group(0).upper().strip())
return 'CC{}'.format(lic.group(0).upper()).strip()
return RIGHTS_ALIAS.get(license_string, None)
MATCH_LICENSE = re.compile(r'creativecommons.org/licenses/([^/]+)/')