summaryrefslogtreecommitdiff
path: root/ext/bg/js/search-query-parser.js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2020-04-13 22:55:33 +0300
committersiikamiika <siikamiika@users.noreply.github.com>2020-04-13 22:55:33 +0300
commitf93dc857107e9b23ec06f1b568aad2c6f870ba4c (patch)
tree8d691c01e3e6a449c6530402398d60cc0b76cc7e /ext/bg/js/search-query-parser.js
parent25bc86c3ce44bd7823d0d924e86969310c14dc8c (diff)
assume and propagate strings for text parsing
Diffstat (limited to 'ext/bg/js/search-query-parser.js')
-rw-r--r--ext/bg/js/search-query-parser.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/search-query-parser.js b/ext/bg/js/search-query-parser.js
index da61b045..692fb1a8 100644
--- a/ext/bg/js/search-query-parser.js
+++ b/ext/bg/js/search-query-parser.js
@@ -140,7 +140,7 @@ class QueryParser extends TextScanner {
const previewTerms = [];
for (let i = 0, ii = text.length; i < ii; i += 2) {
const tempText = text.substring(i, i + 2);
- previewTerms.push([{text: tempText}]);
+ previewTerms.push([{text: tempText, reading: ''}]);
}
this.queryParser.textContent = '';
this.queryParser.appendChild(this.queryParserGenerator.createParseResult(previewTerms, true));