Bug 515637 - Weather station search shouldn't require punctuation
Summary: Weather station search shouldn't require punctuation
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Weather widget (other bugs)
Version First Reported In: 6.5.5
Platform: CachyOS Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-06 16:19 UTC by Isaac Rogers
Modified: 2026-09-25 07:28 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 6.9.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Isaac Rogers 2026-02-06 16:19:04 UTC
SUMMARY
I expect the search results for "st louis" to be a superset of the results for "st. louis", but all NOAA stations are missing from the former.

STEPS TO REPRODUCE
1. Open "Weather Report" widget settings, "Weather Station" tab
2. Type "st louis" in the search bar, note results
3. Replace search with "st. louis"

OBSERVED RESULT
"st louis" finds BBC stations but does not find NOAA stations.
Interestingly, two results are not a substring match: `Saint-Louis, Senegal, SN (BBC Weather)` and `Lambert-St. Louis International Airport, United States, US (BBC Weather)`

"st. louis" finds both BBC stations and NOAA stations

EXPECTED RESULT
Both queries find BBC stations and NOAA stations

SOFTWARE/OS VERSIONS
Operating System: CachyOS Linux 
KDE Plasma Version: 6.5.5
KDE Frameworks Version: 6.22.0
Qt Version: 6.10.2
Kernel Version: 6.18.8-3-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 3700X 8-Core Processor
Memory: 32 GiB of RAM (31.2 GiB usable)
Graphics Processor: NVIDIA GeForce RTX 3090
Comment 1 TraceyC 2026-02-06 17:12:32 UTC
I can reproduce this on Plasma built from git-master
Comment 2 Bug Janitor Service 2026-09-21 14:18:40 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kdeplasma-addons/-/merge_requests/1137
Comment 3 Bogdan Onofriuchuk 2026-09-22 10:42:27 UTC
Git commit 1741487c4ea7e9664af8a336c7196aa4131abc9f by Bohdan Onofriichuk.
Committed on 22/09/2026 at 10:37.
Pushed by littlesweet into branch 'master'.

applets/weather: improve location search

Use a common search matcher for weather locations that ignores case and
non-alphanumeric characters. This allows locations to be found regardless
of punctuation.

M  +1    -1    applets/weather/ions/dwd/ion_dwd.cpp
M  +1    -2    applets/weather/ions/envcan/ion_envcan.cpp
M  +19   -0    applets/weather/ions/ion.cpp
M  +6    -0    applets/weather/ions/ion.h
M  +2    -4    applets/weather/ions/noaa/ion_noaa.cpp

https://invent.kde.org/plasma/kdeplasma-addons/-/commit/1741487c4ea7e9664af8a336c7196aa4131abc9f