From 07445d31bbaaa8eef7d2c1052c183c894bc7253f Mon Sep 17 00:00:00 2001 From: Eduardo Gomez Date: Thu, 16 Jan 2020 11:05:03 +0100 Subject: [PATCH] Try to fix an issue with the search when using languages like chinese --- README.md | 2 +- locales/en.json | 2 +- package.json | 2 +- src/js/app.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 74366cd..b03b851 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ If you have any questions or troubles with this product, please feel free to ope ## License -Copyright (c) 2018-2019 Eduardo Gómez. Released under the [MIT license](https://github.com/eddiesigner/liebling/blob/master/LICENSE). +Copyright (c) 2019-2020 Eduardo Gómez. Released under the [MIT license](https://github.com/eddiesigner/liebling/blob/master/LICENSE). ## Credits diff --git a/locales/en.json b/locales/en.json index 29d9d4d..8036e20 100644 --- a/locales/en.json +++ b/locales/en.json @@ -34,7 +34,7 @@ "Among with": "
Among with ", "Among with no break line": "Among with ", "Type to search": "Type to search", - "No results for your search, try something different.": "No results for your search, try something different.", + "No results for your search, try something different.": "No results for your search, please try with something else.", "JavaScript license information": "JavaScript license information", "Toggle dark mode": "Toggle dark mode" } diff --git a/package.json b/package.json index ae1b9de..6a941fe 100644 --- a/package.json +++ b/package.json @@ -54,5 +54,5 @@ "desktop": "assets/screenshot-desktop.jpg", "mobile": "assets/screenshot-mobile.jpg" }, - "version": "0.6.3" + "version": "0.6.4" } diff --git a/src/js/app.js b/src/js/app.js index 8dcfdc3..b3e276f 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -80,7 +80,7 @@ $(document).ready(() => { location: 0, distance: 100, tokenize: true, - matchAllTokens: true, + matchAllTokens: false, maxPatternLength: 32, minMatchCharLength: 1, keys: ['title', 'custom_excerpt', 'html']