-
-
Notifications
You must be signed in to change notification settings - Fork 616
Open
Labels
Description
Description
Error in parsing version for Eclipse Public License v2.0, which trigger the wrong rule (rid=epl_no-version.RULE).
The correct rule ( rid=epl-2.0_7.RULE) is triggered for both Eclipse Public License v 2.0 and Eclipse Public License 2.0.
Eclipse Public License v1.0 trigger the correct rule (rid=epl-1.0_18.RULE)
How To Reproduce
license_cache = cache.get_index()
matches = license_cache.match(
query_string="Eclipse Public License v2.0", min_score=0
)
---> [LicenseMatch: 'epl-1.0', lines=(1, 1), matcher='2-aho', rid=epl_no-version.RULE, sc=98.0, cov=100.0, len=3, hilen=1, rlen=3, qreg=(0, 2), ireg=(0, 2)]
System configuration
- What OS are you running on? Linux
- What version of scancode-toolkit was used to generate the scan file? 31.2.1 (also in latest version 32.2.0)
- What installation method was used to install/run scancode? pip (python 3.9)