Fix search for mentions

Change version
This commit is contained in:
Eduard Kuzmenko 2021-06-19 03:52:21 +03:00
parent de2e0e3bbc
commit fee808d2a8
2 changed files with 3 additions and 2 deletions

View File

@ -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',

View File

@ -14,7 +14,8 @@ import cleanSearchText from '../helpers/cleanSearchText';
export default class SearchIndex<SearchWhat> {
private fullTexts: Map<SearchWhat, string> = 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) {
}