From 9abb781357f04e7db8529654c6941009771f4bf1 Mon Sep 17 00:00:00 2001 From: Thomas Wilkerling Date: Mon, 3 Oct 2022 18:14:32 +0200 Subject: [PATCH] fix issue #273 --- README.md | 24 ++++++++++++------------ dist/flexsearch.bundle.js | 8 ++++---- dist/flexsearch.compact.js | 2 +- dist/flexsearch.debug.js | 26 +++++++++++++------------- dist/flexsearch.es5.js | 8 ++++---- dist/flexsearch.light.js | 2 +- dist/module/serialize.js | 2 +- package.json | 2 +- src/serialize.js | 8 ++++---- 9 files changed, 41 insertions(+), 41 deletions(-) diff --git a/README.md b/README.md index 7f269f1..b029b76 100644 --- a/README.md +++ b/README.md @@ -67,31 +67,31 @@ Plugins (extern projects): flexsearch.bundle.js - Download - https://rawcdn.githack.com/nextapps-de/flexsearch/0.7.3/dist/flexsearch.bundle.js + Download + https://rawcdn.githack.com/nextapps-de/flexsearch/0.7.31/dist/flexsearch.bundle.js flexsearch.light.js - Download - https://rawcdn.githack.com/nextapps-de/flexsearch/0.7.3/dist/flexsearch.light.js + Download + https://rawcdn.githack.com/nextapps-de/flexsearch/0.7.31/dist/flexsearch.light.js flexsearch.compact.js - Download - https://rawcdn.githack.com/nextapps-de/flexsearch/0.7.3/dist/flexsearch.compact.js + Download + https://rawcdn.githack.com/nextapps-de/flexsearch/0.7.31/dist/flexsearch.compact.js flexsearch.es5.js * - Download - https://rawcdn.githack.com/nextapps-de/flexsearch/0.7.3/dist/flexsearch.es5.js + Download + https://rawcdn.githack.com/nextapps-de/flexsearch/0.7.31/dist/flexsearch.es5.js ES6 Modules - Download + Download The /dist/module/ folder of this Github repository @@ -106,7 +106,7 @@ npm install flexsearch #### Get Latest Nightly (Do not use for production!) -Just exchange the version number from the URLs above with "master", e.g.: "/flexsearch/__0.7.3__/dist/" into "/flexsearch/__master__/dist". +Just exchange the version number from the URLs above with "master", e.g.: "/flexsearch/__0.7.31__/dist/" into "/flexsearch/__master__/dist". ### Compare Web-Bundles @@ -438,7 +438,7 @@ const worker = new WorkerIndex(options); Or via CDN: ```html - + ``` AMD: @@ -447,7 +447,7 @@ AMD: var FlexSearch = require("./flexsearch.js"); ``` -Load one of the builds from the folder dist within your html as a script and use as follows: +Load one of the builds from the folder dist within your html as a script and use as follows: ```js var index = new FlexSearch.Index(options); diff --git a/dist/flexsearch.bundle.js b/dist/flexsearch.bundle.js index 44da61a..aa8610d 100644 --- a/dist/flexsearch.bundle.js +++ b/dist/flexsearch.bundle.js @@ -1,5 +1,5 @@ /**! - * FlexSearch.js v0.7.3 (Bundle) + * FlexSearch.js v0.7.31 (Bundle) * Copyright 2018-2022 Nextapps GmbH * Author: Thomas Wilkerling * Licence: Apache-2.0 @@ -7,7 +7,7 @@ */ (function _f(self){'use strict';try{if(module)self=module}catch(e){}self._factory=_f;var t;function u(a){return"undefined"!==typeof a?a:!0}function aa(a){const b=Array(a);for(let c=0;c=this.B&&(w||!n[l])){var f=L(q,d,r),g="";switch(this.G){case "full":if(2f;h--)if(h-f>=this.B){var k=L(q,d,r,e,f);g=l.substring(f,h);M(this,n,g,k,a,c)}break}case "reverse":if(1=this.B&&M(this,n, g,L(q,d,r,e,h),a,c);g=""}case "forward":if(1=this.B&&M(this,n,g,f,a,c);break}default:if(this.C&&(f=Math.min(f/this.C(b,l,r)|0,q-1)),M(this,n,l,f,a,c),w&&1=this.B&&!e[l]){e[l]=1;const p=this.l&&l>f;M(this,m,p?f:l,L(g+(d/2>g?0:1),d,r,h-1,k-1),a,c,p?l:f)}}}}this.m||(this.register[a]=1)}}return this}; @@ -18,7 +18,7 @@ function sa(a,b,c,d,e,f,g,h){let k=[],m=h?a.h:a.map;a.s||(m=ua(m,g,h,a.l));if(m) function ua(a,b,c,d){c?(d=d&&b>c,a=(a=a[d?b:c])&&a[d?c:b]):a=a[b];return a}t.contain=function(a){return!!this.register[a]};t.update=function(a,b){return this.remove(a).add(a,b)}; t.remove=function(a,b){const c=this.register[a];if(c){if(this.m)for(let d=0,e;db||c)e=e.slice(c,c+b);d&&(e=za.call(this,e));return{tag:a,result:e}}}function za(a){const b=Array(a.length);for(let c=0,d;c=this.C&&(e||!g[l])){var n=O(h,d,k),m="";switch(this.H){case "full":if(2n;q--)if(q-n>=this.C){var r=O(h,d,k,p,n);m=l.substring(n,q);P(this,g,m,r,a,c)}break}case "reverse":if(1=this.C&&P(this,g,m,O(h,d,k, p,q),a,c);m=""}case "forward":if(1=this.C&&P(this,g,m,n,a,c);break}default:if(this.o&&(n=Math.min(n/this.o(b,l,k)|0,h-1)),P(this,g,l,n,a,c),e&&1=this.C&&!p[l]){p[l]=1;var u=this.l&&l>n;P(this,f,u?n:l,O(m+(d/2>m?0:1),d,k,q-1,r-1),a,c,u?l:n)}}}}this.s||(this.register[a]=1)}}return this}; @@ -31,7 +31,7 @@ function xa(a,b,c,d,f,g,e,h){var k=[],l=h?a.h:a.map;a.B||(l=za(l,e,h,a.l));if(l) function za(a,b,c,d){c?(d=d&&b>c,a=(a=a[d?b:c])&&a[d?c:b]):a=a[b];return a}t.contain=function(a){return!!this.register[a]};t.update=function(a,b){return this.remove(a).add(a,b)}; t.remove=function(a,b){var c=this.register[a];if(c){if(this.s)for(var d=0,f;db||c)f=f.slice(c,c+b);d&&(f=Ea.call(this,f));return{tag:a,result:f}}}function Ea(a){for(var b=Array(a.length),c=0,d;c