From 37723be4c8b49b785c40fe5ccd34edbc7c018e1b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 7 Feb 2024 18:51:15 -0500 Subject: Fix parsing NQuads lines with no space before the final dot --- src/n3.c | 2 +- src/serd_config.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; } } diff --git a/src/serd_config.h b/src/serd_config.h index 745232b8..150ffb81 100644 --- a/src/serd_config.h +++ b/src/serd_config.h @@ -36,7 +36,7 @@ #define SERD_SRC_SERD_CONFIG_H // Define version unconditionally so a warning will catch a mismatch -#define SERD_VERSION "0.32.2" +#define SERD_VERSION "0.32.3" #if !defined(SERD_NO_DEFAULT_CONFIG) -- cgit v1.2.1