Skip to content

Commit

Permalink
Merge pull request #37 from OpenTriply/bug-fixSearchTriples
Browse files Browse the repository at this point in the history
Remove buggy condition in toHdtLiteral
  • Loading branch information
RubenVerborgh authored Jan 22, 2019
2 parents ac2aa35 + 58c56ea commit b6d5eb3
Show file tree
Hide file tree
Showing 6 changed files with 132 additions and 56 deletions.
2 changes: 1 addition & 1 deletion lib/HdtDocument.cc
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ string& toHdtLiteral(string& literal) {
if (*(obj = literal.begin()) == '"' && *(objLast = literal.end() - 1) != '"') {
// If the start of a datatype was found, surround it with angular brackets
string::const_iterator datatype = objLast;
while (obj != --datatype && *datatype != '@' && *datatype != '^');
while (obj != --datatype && *datatype != '"' && *datatype != '^');
if (*datatype == '^') {
// Allocate space for brackets, and update iterators
literal.resize(literal.length() + 2);
Expand Down
Loading

0 comments on commit b6d5eb3

Please sign in to comment.