aboutcode-org / aboutcode-org/scancode-toolkit
Eclipse Public License v2.0 matches to epl-1.0 with epl_no-version.RULE
- 主要语言
- Python
- 星标
- 2.6k
- 派生
- 791
- 平均合并
- 1 天 12 小时
- 30 天内合并 PR
- 5
描述
### 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)
贡献指南
评估
这个 Issue 还没有评估数据。