Skip to content

Commit

Permalink
Search page displays queried sentence even when parser is off. (#1522)
Browse files Browse the repository at this point in the history
* parsing skipped when parsers off

* removed comments
  • Loading branch information
austinyu12 authored Oct 22, 2024
1 parent 7b2672a commit ab11521
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ext/js/display/query-parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ export class QueryParser extends EventDispatcher {
this._text = text;
this._setPreview(text);

if (this._useInternalParser === false && this._useMecabParser === false) {
return;
}
/** @type {?import('core').TokenObject} */
const token = {};
this._setTextToken = token;
Expand Down

0 comments on commit ab11521

Please sign in to comment.