https://bugs.kde.org/show_bug.cgi?id=505538
Bug ID: 505538 Summary: Discover does not trim input when searching Classification: Applications Product: Discover Version First 6.3.5 Reported In: Platform: Other OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: discover Assignee: plasma-b...@kde.org Reporter: b...@bencreasy.com CC: aleix...@kde.org Target Milestone: --- Created attachment 182233 --> https://bugs.kde.org/attachment.cgi?id=182233&action=edit clipboard history SUMMARY I wanted to install https://flathub.org/apps/page.codeberg.JakobDev.jdFlatpakSnapshot - so I copied the title jdFlatpakSnapshot and put it in Discover, but I got no results. After some investigation, I found that when I copied from the header of flathub in Google Chrome it had included a newline character at the end. After removing that newline character jdFlatpakSnapshot was pulled up and I installed it. I'm using a Thinkpad T480 with tap-to-click and I tapped three times in rapid succession to highlight and then ctrl+c to copy. I found that if I only tap twice, I don't get the newline. In this case the newline character was invisible, but using visible whitespace characters also creates the issue. Suggestion is to trim the input, especially if no results are found including the whitespace. For example "Firefox " does not pull up Firefox, only apps with firefox in the description. STEPS TO REPRODUCE 1. navigate to https://flathub.org/apps/page.codeberg.JakobDev.jdFlatpakSnapshot and triple click on the header app name on a laptop, notice that the copied value in the clipboard history has a newline 2. Paste into Discover OBSERVED RESULT No results EXPECTED RESULT A result of the app SOFTWARE/OS VERSIONS Windows: macOS: (available in the Info Center app, or by running `kinfo` in a terminal window) Linux/KDE Plasma: Linux aurora 6.14.5-300.fc42.x86_64 #1 SMP PREEMPT_DYNAMIC Fri May 2 14:16:46 UTC 2025 x86_64 GNU/Linux KDE Plasma Version: 6.3.5 KDE Frameworks Version: 6.14.0 Qt Version: 6.9.0 ADDITIONAL INFORMATION -- You are receiving this mail because: You are watching all bug changes.