Skip to content

fix: ignore spaces around search terms - #3730

Merged
AlexAndBear merged 3 commits into
mainfrom
fix/search-trim
Oct 14, 2026
Merged

AlexAndBear merged 3 commits into
mainfrom
fix/search-trim

Conversation

@AlexAndBear

@AlexAndBear AlexAndBear commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

Description

  • File search: leading and trailing spaces are ignored in the search preview and the search results; the input keeps what was typed.
  • Recipient search: sharing and space member search trim the term for the request, the minimum length and the result filter, and only open the dropdown once the trimmed term is long enough.
  • Open-Xchange contacts: the contact search gets the trimmed term too.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: kiwi builds the same query as kiwi, a term of only spaces starts no preview search
  • test case 2: mary searches and filters recipients as mary, the minimum length uses the trimmed term

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear AlexAndBear self-assigned this Oct 12, 2026
@AlexAndBear
AlexAndBear force-pushed the fix/search-trim branch 2 times, most recently from 82ac04a to 34645dd Compare October 13, 2026 16:49
@AlexAndBear
AlexAndBear merged commit 7081c6b into main Oct 14, 2026
27 checks passed
@AlexAndBear
AlexAndBear deleted the fix/search-trim branch October 14, 2026 07:44
@openclouders openclouders mentioned this pull request Oct 14, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Leading or trailing spaces in the search term give no results

2 participants