Update cc.py
parent
0d748b2498
commit
1c5c48ac42
|
@ -168,7 +168,7 @@ def match_license(license_string):
|
||||||
pass
|
pass
|
||||||
lic = MATCH_CC_LICENSE.search(license_string)
|
lic = MATCH_CC_LICENSE.search(license_string)
|
||||||
if lic:
|
if lic:
|
||||||
return 'CC {}'.format(lic.group(0).upper())
|
return 'CC{}'.format(lic.group(0).upper().strip())
|
||||||
return RIGHTS_ALIAS.get(license_string, None)
|
return RIGHTS_ALIAS.get(license_string, None)
|
||||||
|
|
||||||
MATCH_LICENSE = re.compile(r'creativecommons.org/licenses/([^/]+)/')
|
MATCH_LICENSE = re.compile(r'creativecommons.org/licenses/([^/]+)/')
|
||||||
|
|
Loading…
Reference in New Issue