Skip to content

Commit

Permalink
Update src/N3Lexer.js
Browse files Browse the repository at this point in the history
Co-authored-by: Ruben Verborgh <ruben@verborgh.org>
  • Loading branch information
jeswr and RubenVerborgh committed Jun 22, 2023
1 parent 039dcbf commit 565ba98
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/N3Lexer.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,13 +324,10 @@ export default class N3Lexer {
break;
case '|':
// We need 2 tokens lookahead to parse "|}"
if (input.length < 2)
break;
// Try to find a quoted triple annotation end
if (input[0] === '|' && input.length > 1 && input[1] === '}') {
if (input.length >= 2 && input[1] === '}')
type = '|}', matchLength = 2;
break;
}
break;

default:
inconclusive = true;
Expand Down

0 comments on commit 565ba98

Please sign in to comment.