Skip to content

Commit

Permalink
issue 311 highlighter fails when keywords found side-by-side
Browse files Browse the repository at this point in the history
  • Loading branch information
Madhu Donepudi committed Jul 30, 2019
1 parent 86ba5db commit d83ac0e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1352,12 +1352,12 @@ public int compare(String o1, String o2) {
}
//For each conceptName of the update list deletes and creates a new conceptName
for (String ntc : namesToCreate.keySet()) {
if (!ntc.contains("</span>")) {
// if (!ntc.contains("</span>")) {
String newName = p.matcher(ntc).replaceAll(highlighter);
boolean isPref = namesToCreate.get(ntc);
concept.deleteConceptName(ntc);
concept.createConceptName(newName, isPref);
}
// }
}

// search in concept attributes
Expand Down

1 comment on commit d83ac0e

@mdonepudi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#311 removed an IF conditional block which is blocking performing substitution of keyword with HTML tag

Please sign in to comment.