Commits

WAKAYAMA shirou committed 0de6050

join to-be-highlighted word in order to fix highlight.

  • Participants
  • Parent commits bace706

Comments (0)

Files changed (1)

File src/dipus/_static/js/search_dipus.js

   ((start + 240 - text.length) ? '...' : '');
   var rv = $('<div class="context"></div>').text(excerpt);
   $.each(hlwords, function() {
-    rv = rv.highlightText(this, 'highlighted');
+	  var hlword = hlwords.join("").toLowerCase();
+      rv = rv.highlightText(hlword, 'highlighted');
   });
   return rv;
 };