Skip to content

Commit

Permalink
Merge pull request #194 from Ontotext-AD/GDB-4393-fix-autocomplete-tr…
Browse files Browse the repository at this point in the history
…iple-in-query

GDB-4393 Fix autocomplete triple in query
  • Loading branch information
desislava-hristova-ontotext authored Mar 27, 2020
2 parents 57fc9bc + 4e9cfa5 commit 64b5788
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/lib/yasqe.bundled.js
Original file line number Diff line number Diff line change
Expand Up @@ -27756,6 +27756,10 @@ var postprocessResourceTokenForCompletion = function (yasqe, token, suggestedStr
// Do not put brackets to prefixes
if (suggestedString.indexOf("<b>" + token.string) === 0) {
return suggestedString;
}
// Do not put brackets on nested triples
if (suggestedString.startsWith("<<") && suggestedString.endsWith(">>")) {
return suggestedString;
}
suggestedString = "<" + suggestedString + ">";
}
Expand Down

0 comments on commit 64b5788

Please sign in to comment.