diff options
Diffstat (limited to 'ext/bg/js')
-rw-r--r-- | ext/bg/js/query-parser-generator.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/bg/js/query-parser-generator.js b/ext/bg/js/query-parser-generator.js index d53183ba..34923c1d 100644 --- a/ext/bg/js/query-parser-generator.js +++ b/ext/bg/js/query-parser-generator.js @@ -24,8 +24,7 @@ class QueryParserGenerator { termNode.className = 'query-parser-term'; termNode.dataset.type = type; for (const segment of term) { - if (!segment.text.trim()) { continue; } - if (!segment.reading.trim()) { + if (segment.reading.trim().length === 0) { this._addSegmentText(segment.text, termNode); } else { termNode.appendChild(this._createSegment(segment)); |