Skip to content

Commit 63e0fde

Browse files
fix(fe:FSADT1-1569): do not remove duplicate spaces in the middle of the search terms (#1296)
fix: do not remove duplicate spaces in the middle of the string Co-authored-by: Maria Martinez <[email protected]>
1 parent 3ee985f commit 63e0fde

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: frontend/cypress/e2e/pages/SearchPage.cy.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ describe("Search Page", () => {
345345

346346
describe("when user fills in the search box with extra spaces", () => {
347347
beforeEach(() => {
348-
cy.fillFormEntry("#search-box", " hello world ", { skipBlur: true });
348+
cy.fillFormEntry("#search-box", " hello world ", { skipBlur: true });
349349
});
350350

351351
it("trims the entered string before making the API call", () => {

Diff for: frontend/src/pages/SearchPage.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const pageSize = ref(10);
4545
4646
const rawSearchKeyword = ref("");
4747
48-
const searchKeyword = computed(() => rawSearchKeyword.value.trim().replaceAll(/ +/g, " "));
48+
const searchKeyword = computed(() => rawSearchKeyword.value.trim());
4949
const lastSearchKeyword = ref("");
5050
5151
// empty is valid

0 commit comments

Comments
 (0)