Skip to content

Commit

Permalink
Updated search script
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmerfield committed Jul 23, 2018
1 parent cdb06bf commit 8600f86
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/entry/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ if (!handle || !query) {

get(handle, function(user, blog) {
Entries.each(blog.id, function(entry, nextEntry) {

if (entry.deleted) return nextEntry();

if (entry.path.toLowerCase().indexOf(query.trim().toLowerCase()) === 0) {
console.log(entry.path);
}
Expand Down

0 comments on commit 8600f86

Please sign in to comment.