aboutsummaryrefslogtreecommitdiffstats
path: root/src/reader.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reader.c')
-rw-r--r--src/reader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/reader.c b/src/reader.c
index 114b53af..615f4d46 100644
--- a/src/reader.c
+++ b/src/reader.c
@@ -773,7 +773,7 @@ read_language(SerdReader reader)
while ((c = peek_byte(reader)) && in_range(c, 'a', 'z')) {
push_byte(reader, str, eat_byte(reader, c));
}
- if (peek_byte(reader) == '-') {
+ while (peek_byte(reader) == '-') {
push_byte(reader, str, eat_byte(reader, '-'));
while ((c = peek_byte(reader)) && (
in_range(c, 'a', 'z') || in_range(c, '0', '9'))) {