aboutsummaryrefslogtreecommitdiffstats
path: root/src/n3.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-02-07 18:51:15 -0500
committerDavid Robillard <d@drobilla.net>2024-03-08 17:13:28 -0500
commit37723be4c8b49b785c40fe5ccd34edbc7c018e1b (patch)
tree4c784a3384c2574b5eb89f2b3efc90132b202aa5 /src/n3.c
parent9caf3ec7c867795c475a42c72c6a4aa3f41104b7 (diff)
downloadserd-37723be4c8b49b785c40fe5ccd34edbc7c018e1b.tar.gz
serd-37723be4c8b49b785c40fe5ccd34edbc7c018e1b.tar.bz2
serd-37723be4c8b49b785c40fe5ccd34edbc7c018e1b.zip
Fix parsing NQuads lines with no space before the final dot
Diffstat (limited to 'src/n3.c')
-rw-r--r--src/n3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/n3.c b/src/n3.c
index e713a828..4f7ddd47 100644
--- a/src/n3.c
+++ b/src/n3.c
@@ -1763,7 +1763,7 @@ read_nquads_statement(SerdReader* const reader)
// Terminating '.'
read_ws_star(reader);
- if (!eat_byte_check(reader, '.')) {
+ if (!ate_dot && !eat_byte_check(reader, '.')) {
return SERD_ERR_BAD_SYNTAX;
}
}