Skip to content

Commit

Permalink
lunr 2.3.5 update (#2010)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinrummel authored and mmistakes committed Jan 1, 2019
1 parent 70c9373 commit f27bd39
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
22 changes: 11 additions & 11 deletions assets/js/lunr/lunr.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.3
* lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.5
* Copyright (C) 2018 Oliver Nightingale
* @license MIT
*/
Expand Down Expand Up @@ -54,7 +54,7 @@ var lunr = function (config) {
return builder.build()
}

lunr.version = "2.3.3"
lunr.version = "2.3.5"
/*!
* lunr.utils
* Copyright (C) 2018 Oliver Nightingale
Expand Down Expand Up @@ -675,7 +675,7 @@ lunr.Pipeline.prototype.run = function (tokens) {

if (result === void 0 || result === '') continue

if (result instanceof Array) {
if (Array.isArray(result)) {
for (var k = 0; k < result.length; k++) {
memo.push(result[k])
}
Expand Down Expand Up @@ -1460,13 +1460,13 @@ lunr.TokenSet.fromFuzzyString = function (str, editDistance) {

if (frame.str.length == 1) {
noEditNode.final = true
} else {
stack.push({
node: noEditNode,
editsRemaining: frame.editsRemaining,
str: frame.str.slice(1)
})
}

stack.push({
node: noEditNode,
editsRemaining: frame.editsRemaining,
str: frame.str.slice(1)
})
}

// deletion
Expand Down Expand Up @@ -2289,7 +2289,7 @@ lunr.Index.load = function (serializedIndex) {
var attrs = {},
fieldVectors = {},
serializedVectors = serializedIndex.fieldVectors,
invertedIndex = {},
invertedIndex = Object.create(null),
serializedInvertedIndex = serializedIndex.invertedIndex,
tokenSetBuilder = new lunr.TokenSet.Builder,
pipeline = lunr.Pipeline.load(serializedIndex.pipeline)
Expand Down Expand Up @@ -3481,4 +3481,4 @@ lunr.QueryParser.parseBoost = function (parser) {
*/
return lunr
}))
})();
})();
Loading

0 comments on commit f27bd39

Please sign in to comment.