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>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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,
)