From 65e4391fbe6f3b306f344f96e3e206f4903bbfe8 Mon Sep 17 00:00:00 2001 From: megumiimai Date: Tue, 12 Dec 2023 21:52:20 +0900 Subject: [PATCH] [#2826]add comment --- js/bootstrap-select.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/bootstrap-select.js b/js/bootstrap-select.js index eeca4a680..de9a976fa 100644 --- a/js/bootstrap-select.js +++ b/js/bootstrap-select.js @@ -2953,6 +2953,7 @@ var searchValue = that.$searchbox[0].value; var isWhitespace = /^\s*$/.test(searchValue); if (!isWhitespace) { + // trim leading and trailing half-width spaces and full-width spaces. searchValue = searchValue.replace(/^\s+|\s+$/g, ''); }