From 0155b2e49f963123bde4fa01b66b0fda39c950d0 Mon Sep 17 00:00:00 2001 From: Yannik Tausch Date: Tue, 23 Jul 2024 14:36:30 +0200 Subject: [PATCH] ensure licenses are mapped to self --- grayskull/license/discovery.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/grayskull/license/discovery.py b/grayskull/license/discovery.py index 24ba7e643..4cd8c0acf 100644 --- a/grayskull/license/discovery.py +++ b/grayskull/license/discovery.py @@ -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)]