From 1812d0fc6c5076b51cd2afd97a20d351ffe19773 Mon Sep 17 00:00:00 2001 From: kuuuube Date: Wed, 27 Nov 2024 12:11:57 -0500 Subject: [PATCH] Only trimEnd for queryInput --- ext/js/display/search-display-controller.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/js/display/search-display-controller.js b/ext/js/display/search-display-controller.js index 2ed9ada2c..3429d14e5 100644 --- a/ext/js/display/search-display-controller.js +++ b/ext/js/display/search-display-controller.js @@ -20,7 +20,6 @@ import * as wanakana from '../../lib/wanakana.js'; import {ClipboardMonitor} from '../comm/clipboard-monitor.js'; import {createApiMap, invokeApiMapHandler} from '../core/api-map.js'; import {EventListenerCollection} from '../core/event-listener-collection.js'; -import {trimTrailingWhitespacePlusSpace} from '../data/string-util.js'; import {querySelectorNotNull} from '../dom/query-selector.js'; export class SearchDisplayController { @@ -238,7 +237,7 @@ export class SearchDisplayController { this._searchBackButton.hidden = !showBackButton; if (this._queryInput.value !== query) { - this._queryInput.value = trimTrailingWhitespacePlusSpace(query); + this._queryInput.value = query.trimEnd(); this._updateSearchHeight(true); } this._setIntroVisible(!valid, animate);