| Message ID | 20260420-spdx3-improvements-v1-7-27e0d5edcdbe@bootlin.com |
|---|---|
| State | Accepted, archived |
| Commit | cd0dcf8bf2089459a3073c05886ec21a1a93f244 |
| Headers | show |
| Series | spdx3: Bug fixes and improvements | expand |
diff --git a/meta/lib/oe/spdx_common.py b/meta/lib/oe/spdx_common.py index c0ef11f19950..47d14b55c701 100644 --- a/meta/lib/oe/spdx_common.py +++ b/meta/lib/oe/spdx_common.py @@ -15,7 +15,7 @@ from pathlib import Path from dataclasses import dataclass LIC_REGEX = re.compile( - rb"^\W*SPDX-License-Identifier:\s*([ \w\d.()+-]+?)(?:\s+\W*)?$", + rb"^\W*SPDX-License-Identifier:\s*([ \w.()+-]+?)(?:\s+\W*)?$", re.MULTILINE, )
The \w metacharacter matches word characters. A word character is a character a-z, A-Z, 0-9, including _ The \d metacharacter matches digits from 0 to 9. Signed-off-by: Benjamin Robin (Schneider Electric) <benjamin.robin@bootlin.com> --- meta/lib/oe/spdx_common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)