ad-freiburg / qlever-ui

A user interface for QLever
Apache License 2.0
21 stars 15 forks source link

Small bug when completing inside of parantheses in ORDER BY DESC(...) #14

Closed hannahbast closed 4 years ago

hannahbast commented 4 years ago

Consider the following SPARQL query, where _ is the cursor position.

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?date WHERE { ?x wdt:P569 ?date }
ORDER BY DESC(_)

The contents of the query does not matter, only the last line matters. When completing at the specified cursor position, wrong text is inserted leading to the following:

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
SELECT ?date WHERE { ?x wdt:P569 ?date }
ORDER BY DESC(?
[object HTMLInputElement]date) )