Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
luigi-asprino committed Sep 16, 2024
1 parent 5bd2ec0 commit 6d01dc2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ public static String fixIRIWithException(String unescapedIRI) {
escapedIRI = escapedIRI.replaceAll(">.*$", "");

// Drop the triple if any of these appear in the URL: <>[]|*{}"<>\
if (escapedIRI.matches("[<>\\[\\]|\\*\\{\\}\"\\\\]"))
if (escapedIRI.contains("<")||escapedIRI.contains(">")||escapedIRI.matches("[\\[\\]|\\*\\{\\}\"\\\\]"))
throw new IllegalArgumentException("Invalid character in org.eclipse.rdf4j.model.IRI: " + unescapedIRI);

return escapedIRI;
Expand Down

0 comments on commit 6d01dc2

Please sign in to comment.