There was an error while loading. Please reload this page.
1 parent e357ba9 commit c3ddb40Copy full SHA for c3ddb40
1 file changed
lib/pyld/nquads.py
@@ -42,7 +42,8 @@ def parse_nquads(input_: str):
42
literal = '(?:' + plain + '(?:' + datatype + '|' + language + ')?)'
43
ws = '[ \\t]+'
44
wso = '[ \\t]*'
45
- empty = r'^' + wso + '$'
+ comment = '^#.*$'
46
+ empty = '(' + r'^' + wso + '$' + '|' + comment + ')'
47
48
# define quad part regexes
49
subject = '(?:' + iri + '|' + bnode + ')' + ws
0 commit comments