aboutcode-org / aboutcode-org/scancode-toolkit

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

Aperta
#3,961 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug
Lingua principale
Python
Stelle
2.6k
Fork
791
Merge medio
1g 12h
PR unite (30g)
5

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.