We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 478c761 commit a0f25d6Copy full SHA for a0f25d6
spdx/parsers/tagvaluebuilders.py
@@ -42,7 +42,7 @@ def checksum_from_sha1(value):
42
checksum or None if does not match CHECKSUM_RE.
43
"""
44
# More constrained regex at lexer level
45
- CHECKSUM_RE = re.compile('SHA1:\s*([\S]+)', re.UNICODE)
+ CHECKSUM_RE = re.compile('SHA1:\\s*([\\S]+)', re.UNICODE)
46
match = CHECKSUM_RE.match(value)
47
if match:
48
return checksum.Algorithm(identifier='SHA1', value=match.group(1))
0 commit comments