From 9eb98a511d90c7462fc6f1243b25d415f4daa642 Mon Sep 17 00:00:00 2001 From: Jim Balhoff Date: Fri, 9 Aug 2024 16:38:55 -0400 Subject: [PATCH] Expand regex for absolute IRIs --- lib/sparql.jison | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sparql.jison b/lib/sparql.jison index f72c99e4..d981ab06 100644 --- a/lib/sparql.jison +++ b/lib/sparql.jison @@ -57,7 +57,7 @@ if (iri[0] === '<') iri = iri.substring(1, iri.length - 1); // Return absolute IRIs unmodified - if (/^[a-z]+:/i.test(iri)) + if (/^[a-z][a-z0-9.+-]*:/i.test(iri)) return iri; if (!Parser.base) throw new Error('Cannot resolve relative IRI ' + iri + ' because no base IRI was set.');