RubenVerborgh/SPARQL.js

Parsing INSERT/DELETE queries with too much whitespace cause "too much recursion"

selevt opened this issue · 0 comments

selevt commented

Hello,

Parsing the following query causes a too much recursion error:

INSERT
                                                   {<urn:a> <urn:b> <urn:c> } WHERE {}

Repro: https://stackblitz.com/edit/js-uncrfh?file=index.js

In Firefox this shows a too much recursion, in Chrome the page becomes unresponsive.

Same for DELETE queries, but CONSTRUCT is fine. Also when moving the opening brace, the parsing is fine:

INSERT {
                                                   <urn:a> <urn:b> <urn:c> } WHERE {}