|
@ -8774,11 +8774,12 @@ |
|
|
var _$LiteralSearchStrategy_6 = new LiteralSearchStrategy(); |
|
|
var _$LiteralSearchStrategy_6 = new LiteralSearchStrategy(); |
|
|
function LiteralSearchStrategy() { |
|
|
function LiteralSearchStrategy() { |
|
|
this.matches = function(str, crit) { |
|
|
this.matches = function(str, crit) { |
|
|
if (typeof str !== "string") { |
|
|
if (!str) return false; |
|
|
return false; |
|
|
str = str.trim().toLowerCase(); |
|
|
} |
|
|
crit = crit.toLowerCase(); |
|
|
str = str.trim(); |
|
|
return crit.split(" ").filter(function(word) { |
|
|
return str.toLowerCase().indexOf(crit.toLowerCase()) >= 0; |
|
|
return str.indexOf(word) >= 0; |
|
|
|
|
|
}).length > 0; |
|
|
}; |
|
|
}; |
|
|
} |
|
|
} |
|
|
"use strict"; |
|
|
"use strict"; |
|
@ -8904,11 +8905,9 @@ |
|
|
function merge(defaultParams, mergeParams) { |
|
|
function merge(defaultParams, mergeParams) { |
|
|
var mergedOptions = {}; |
|
|
var mergedOptions = {}; |
|
|
for (var option in defaultParams) { |
|
|
for (var option in defaultParams) { |
|
|
if (Object.prototype.hasOwnProperty.call(defaultParams, option)) { |
|
|
mergedOptions[option] = defaultParams[option]; |
|
|
mergedOptions[option] = defaultParams[option]; |
|
|
if (typeof mergeParams[option] !== "undefined") { |
|
|
if (typeof mergeParams[option] !== "undefined") { |
|
|
mergedOptions[option] = mergeParams[option]; |
|
|
mergedOptions[option] = mergeParams[option]; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
return mergedOptions; |
|
|
return mergedOptions; |
|
@ -8969,10 +8968,6 @@ |
|
|
search: search |
|
|
search: search |
|
|
}; |
|
|
}; |
|
|
}; |
|
|
}; |
|
|
window.SimpleJekyllSearch.init = window.SimpleJekyllSearch; |
|
|
|
|
|
if (typeof window.SimpleJekyllSearchInit === "function") { |
|
|
|
|
|
window.SimpleJekyllSearchInit.call(this, window.SimpleJekyllSearch); |
|
|
|
|
|
} |
|
|
|
|
|
function initWithJSON(json) { |
|
|
function initWithJSON(json) { |
|
|
options.success(json); |
|
|
options.success(json); |
|
|
_$Repository_4.put(json); |
|
|
_$Repository_4.put(json); |
|
|