diff --git a/dest/simple-jekyll-search.js b/dest/simple-jekyll-search.js index df066db..b0e3a1b 100644 --- a/dest/simple-jekyll-search.js +++ b/dest/simple-jekyll-search.js @@ -1,6 +1,6 @@ /*! - * Simple-Jekyll-Search 1.12.0 - * Copyright 2015-2024, Christian Fei + * Simple-Jekyll-Search 1.12.1 + * Copyright 2015-2024, Christian Fei, Neil Boyd * Licensed under the MIT License. */ diff --git a/dest/simple-jekyll-search.min.js b/dest/simple-jekyll-search.min.js index 9964f7a..7061eda 100644 --- a/dest/simple-jekyll-search.min.js +++ b/dest/simple-jekyll-search.min.js @@ -1,6 +1,6 @@ /*! - * Simple-Jekyll-Search 1.12.0 - * Copyright 2015-2024, Christian Fei + * Simple-Jekyll-Search 1.12.1 + * Copyright 2015-2024, Christian Fei, Neil Boyd * Licensed under the MIT License. */ !function(){"use strict";var o={compile:function(r){return i.template.replace(i.pattern,function(e,t){var n=i.middleware(t,r[t],i.template,r.query);return void 0!==n?n:r[t]||e})},setOptions:function(e){i.pattern=e.pattern||i.pattern,i.template=e.template||i.template,"function"==typeof e.middleware&&(i.middleware=e.middleware)}};const i={};i.pattern=/\{(.*?)\}/g,i.template="",i.middleware=function(){};var n=function(e,t){var n=t.length,r=e.length;if(ne.isWordLike).map(e=>e.segment)).filter(e=>0<=t.indexOf(e)).length===n.length}};const u=new Intl.Segmenter([],{granularity:"word"});var c={put:function(e){if(d(e))return p(e);if(function(e){return Boolean(e)&&"[object Array]"===Object.prototype.toString.call(e)}(e))return function(n){var r=[];f();for(let e=0,t=n.length;e{title}',templateMiddleware:Function.prototype,sortMiddleware:function(){return 0},noResultsText:"No results found",limit:10,fuzzy:!1,debounceTime:null,exclude:[],onSearch:Function.prototype},n;const x=function(e,t){t?(clearTimeout(n),n=setTimeout(e,t)):e.call()},j=["searchInput","resultsContainer","json"],q=e({required:j});function w(e){c.put(e),i.searchInput.addEventListener("input",function(e){-1===[13,16,20,37,38,39,40,91].indexOf(e.which)&&(v(),x(function(){O(e.target.value)},i.debounceTime))})}function v(){i.resultsContainer.innerHTML=""}function S(e){i.resultsContainer.innerHTML+=e}function O(e){var t;(t=e)&&0e.isWordLike).map(e=>e.segment)).filter(e=>0<=t.indexOf(e)).length===n.length}};const u=new Intl.Segmenter([],{granularity:"word"});var c={put:function(e){if(d(e))return p(e);if(function(e){return Boolean(e)&&"[object Array]"===Object.prototype.toString.call(e)}(e))return function(n){var r=[];f();for(let e=0,t=n.length;e{title}',templateMiddleware:Function.prototype,sortMiddleware:function(){return 0},noResultsText:"No results found",limit:10,fuzzy:!1,debounceTime:null,exclude:[],onSearch:Function.prototype},n;const x=function(e,t){t?(clearTimeout(n),n=setTimeout(e,t)):e.call()},j=["searchInput","resultsContainer","json"],q=e({required:j});function w(e){c.put(e),i.searchInput.addEventListener("input",function(e){-1===[13,16,20,37,38,39,40,91].indexOf(e.which)&&(v(),x(function(){O(e.target.value)},i.debounceTime))})}function v(){i.resultsContainer.innerHTML=""}function S(e){i.resultsContainer.innerHTML+=e}function O(e){var t;(t=e)&&0