Skip to content

Commit 475412d

Browse files
committed
[issue-788] fix tag-value parser to allow NONE and NOASSERTION for package source info as they are valid strings
Signed-off-by: Meret Behrens <[email protected]> # fixes 788
1 parent a81b3aa commit 475412d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/spdx_tools/spdx/parser/tagvalue/parser.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,8 @@ def p_text(self, p):
219219
@grammar_rule(
220220
"text_or_line : LINE\n line_or_no_assertion : LINE\nline_or_no_assertion_or_none : text_or_line\n"
221221
"text_or_line_including_no_assertion : text_or_line\ntext_or_line_including_no_assertion : NO_ASSERTION\n"
222-
"text_or_line_including_no_assertion : NONE")
222+
"text_or_line_including_no_assertion : NONE"
223+
)
223224
def p_line(self, p):
224225
p[0] = p[1]
225226

0 commit comments

Comments
 (0)