From fee808d2a829a1631a38def12ed943b984ee71b5 Mon Sep 17 00:00:00 2001 From: Eduard Kuzmenko Date: Sat, 19 Jun 2021 03:52:21 +0300 Subject: [PATCH] Fix search for mentions Change version --- src/config/app.ts | 2 +- src/lib/searchIndex.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/config/app.ts b/src/config/app.ts index 446d892c..a7a379c4 100644 --- a/src/config/app.ts +++ b/src/config/app.ts @@ -12,7 +12,7 @@ const App = { id: 1025907, hash: '452b0359b988148995f22ff0f4229750', - version: '0.5.6', + version: '0.5.7', langPackVersion: '0.2.3', langPack: 'macos', langPackCode: 'en', diff --git a/src/lib/searchIndex.ts b/src/lib/searchIndex.ts index b6724ea2..9fccb2a9 100644 --- a/src/lib/searchIndex.ts +++ b/src/lib/searchIndex.ts @@ -14,7 +14,8 @@ import cleanSearchText from '../helpers/cleanSearchText'; export default class SearchIndex { private fullTexts: Map = new Map(); - constructor(private cleanText = true, private latinize = true, private minChars: number = 1) { + // minChars can be 0 because it requires at least one word (one symbol) to be found + constructor(private cleanText = true, private latinize = true, private minChars: number = 0) { }