Skip to content

Commit

Permalink
Feature/highlight text fix 3 (#59)
Browse files Browse the repository at this point in the history
* highlight text fix

* highlight text fix 3
  • Loading branch information
gecBurton authored Dec 13, 2024
1 parent 2d264a1 commit c1ad17d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/templates/core/document.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
page.getTextContent().then(function(textContent) {
// Loop through text items to find the text you want to highlight
textContent.items.forEach(function(item) {
if (item.str.includes("{{ embedding.text|stringformat:'r' }}")) {
if ("{{ embedding.text|stringformat:'r' }}".includes(item.str)) {
console.log("found!");
} else {
console.log(item + " isnt relevant");
Expand Down

0 comments on commit c1ad17d

Please sign in to comment.