aboutcode-org / aboutcode-org/license-expression

SPDX Failing to parse license for no obvious reason

未關閉
#87 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
73
分支
33
PR 合併指標
30 天內沒有已合併 PR

描述

Hi `license-expression`. I must begin that this is a great piece of software, and I'm grateful for your contributions.

I noticed a strange edge case when using the spdx license parser. The parser raises an exception when I try to parse `Sleepycat License` but is fine with `Sleepydog License` or even `Sleepyca License`.

Reproducible example:
```python
SPDX_LICENSING = license_expression.get_spdx_licensing()

# ExpressionParseError: Invalid symbols sequence such as (A B) for token: "License" at position: 10
_ = SPDX_LICENSING.parse('Sleepycat License')

# Works
_ = SPDX_LICENSING.parse('Sleepydog License')
_ = SPDX_LICENSING.parse('Sleepyca License')
```

Relevant versions installed via conda.
```bash
python 3.11.4 h47c9636_0_cpython conda-forge
license-expression 30.1.1 pyhd8ed1ab_0 conda-forge
```

Thanks in advance!

貢獻指南

這個儲存庫沒有索引到貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。