Browse Source

Fix search for mentions

Change version
master
Eduard Kuzmenko 4 years ago
parent
commit
fee808d2a8
  1. 2
      src/config/app.ts
  2. 3
      src/lib/searchIndex.ts

2
src/config/app.ts

@ -12,7 +12,7 @@
const App = { const App = {
id: 1025907, id: 1025907,
hash: '452b0359b988148995f22ff0f4229750', hash: '452b0359b988148995f22ff0f4229750',
version: '0.5.6', version: '0.5.7',
langPackVersion: '0.2.3', langPackVersion: '0.2.3',
langPack: 'macos', langPack: 'macos',
langPackCode: 'en', langPackCode: 'en',

3
src/lib/searchIndex.ts

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

Loading…
Cancel
Save