aboutcode-org / aboutcode-org/scancode-toolkit

Eclipse Public License v2.0 matches to epl-1.0 with epl_no-version.RULE

Đang mở
#3,961 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
bug
Ngôn ngữ chính
Python
Star
2.6k
Fork
791
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
5

Mô tả

### 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)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.