From 039dcbf884e42618c65d2ac007377633c437034c Mon Sep 17 00:00:00 2001 From: Jesse Wright <63333554+jeswr@users.noreply.github.com> Date: Thu, 22 Jun 2023 23:18:02 +1000 Subject: [PATCH] Update src/N3Lexer.js Co-authored-by: Ruben Verborgh --- src/N3Lexer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/N3Lexer.js b/src/N3Lexer.js index 2d89ffb..040004f 100644 --- a/src/N3Lexer.js +++ b/src/N3Lexer.js @@ -323,7 +323,7 @@ export default class N3Lexer { } break; case '|': - // We need at least 2 tokens lookahead to distinguish "|}" and "|" + // We need 2 tokens lookahead to parse "|}" if (input.length < 2) break; // Try to find a quoted triple annotation end