lunr 2.3.5 update (#2010)
This commit is contained in:
parent
70c937392d
commit
f27bd39a41
22
assets/js/lunr/lunr.js
vendored
22
assets/js/lunr/lunr.js
vendored
@ -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
|
* Copyright (C) 2018 Oliver Nightingale
|
||||||
* @license MIT
|
* @license MIT
|
||||||
*/
|
*/
|
||||||
@ -54,7 +54,7 @@ var lunr = function (config) {
|
|||||||
return builder.build()
|
return builder.build()
|
||||||
}
|
}
|
||||||
|
|
||||||
lunr.version = "2.3.3"
|
lunr.version = "2.3.5"
|
||||||
/*!
|
/*!
|
||||||
* lunr.utils
|
* lunr.utils
|
||||||
* Copyright (C) 2018 Oliver Nightingale
|
* Copyright (C) 2018 Oliver Nightingale
|
||||||
@ -675,7 +675,7 @@ lunr.Pipeline.prototype.run = function (tokens) {
|
|||||||
|
|
||||||
if (result === void 0 || result === '') continue
|
if (result === void 0 || result === '') continue
|
||||||
|
|
||||||
if (result instanceof Array) {
|
if (Array.isArray(result)) {
|
||||||
for (var k = 0; k < result.length; k++) {
|
for (var k = 0; k < result.length; k++) {
|
||||||
memo.push(result[k])
|
memo.push(result[k])
|
||||||
}
|
}
|
||||||
@ -1460,13 +1460,13 @@ lunr.TokenSet.fromFuzzyString = function (str, editDistance) {
|
|||||||
|
|
||||||
if (frame.str.length == 1) {
|
if (frame.str.length == 1) {
|
||||||
noEditNode.final = true
|
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
|
// deletion
|
||||||
@ -2289,7 +2289,7 @@ lunr.Index.load = function (serializedIndex) {
|
|||||||
var attrs = {},
|
var attrs = {},
|
||||||
fieldVectors = {},
|
fieldVectors = {},
|
||||||
serializedVectors = serializedIndex.fieldVectors,
|
serializedVectors = serializedIndex.fieldVectors,
|
||||||
invertedIndex = {},
|
invertedIndex = Object.create(null),
|
||||||
serializedInvertedIndex = serializedIndex.invertedIndex,
|
serializedInvertedIndex = serializedIndex.invertedIndex,
|
||||||
tokenSetBuilder = new lunr.TokenSet.Builder,
|
tokenSetBuilder = new lunr.TokenSet.Builder,
|
||||||
pipeline = lunr.Pipeline.load(serializedIndex.pipeline)
|
pipeline = lunr.Pipeline.load(serializedIndex.pipeline)
|
||||||
@ -3481,4 +3481,4 @@ lunr.QueryParser.parseBoost = function (parser) {
|
|||||||
*/
|
*/
|
||||||
return lunr
|
return lunr
|
||||||
}))
|
}))
|
||||||
})();
|
})();
|
||||||
|
7
assets/js/lunr/lunr.min.js
vendored
7
assets/js/lunr/lunr.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user