Skip to content

Commit

Permalink
ensure licenses are mapped to self
Browse files Browse the repository at this point in the history
  • Loading branch information
ytausch committed Aug 19, 2024
1 parent f0ca4bb commit 0155b2e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions grayskull/license/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ def match_license(name: str) -> dict:
name = re.sub(r"\s+license\s*", "", name.strip(), flags=re.IGNORECASE)
name = name.strip()

if name in _get_all_license_choice(all_licenses):
return _get_license(name, all_licenses)

exact_match = _match_scrambled_exact(name, _get_all_license_choice(all_licenses))
if exact_match:
best_matches = [(exact_match, 100, 0)]
Expand Down

0 comments on commit 0155b2e

Please sign in to comment.