Skip to content

Commit

Permalink
Add case insensitivity to absolute IRI detection
Browse files Browse the repository at this point in the history
Part of resolving LDflex/LDflex-Comunica#22 as blank nodes of the form `nodeID://1234` from Virtuoso need to be treated as absolute IRI's when going through this parser.
  • Loading branch information
jeswr authored Nov 20, 2020
1 parent 3f48ad1 commit 86ddc2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sparql.jison
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
if (iri[0] === '<')
iri = iri.substring(1, iri.length - 1);
// Return absolute IRIs unmodified
if (/^[a-z]+:/.test(iri))
if (/^[a-z]+:/i.test(iri))
return iri;
if (!Parser.base)
throw new Error('Cannot resolve relative IRI ' + iri + ' because no base IRI was set.');
Expand Down

0 comments on commit 86ddc2e

Please sign in to comment.