Skip to content

Commit e2c5e89

Browse files
authored
Merge pull request #10 from mjmlio/bugfix/search-not-returning-correct-results
bugfix(search) not returning correct results
2 parents ab28b55 + c6ea40d commit e2c5e89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/javascripts/app/_search.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
$(bind);
2121

2222
function populate() {
23-
$('h1, h2').each(function() {
23+
$('h1, h2, h3, h4').each(function() {
2424
var title = $(this);
25-
var body = title.nextUntil('h1, h2');
25+
var body = title.nextUntil('h1, h2, h3, h4');
2626
index.add({
2727
id: title.prop('id'),
2828
title: title.text(),

0 commit comments

Comments
 (0)