feat(satellites): fuzzy name search ignoring separators

The satellite search only matched exact continuous substrings, so names with
dashes, spaces or brackets (AO-7, ISS (ZARYA), FO-29) could not be found by
queries without those separators. Now the query is normalized (lowercased,
non-alphanumeric separators stripped) and split into space-separated tokens,
and every token must appear in the normalized satellite name. This makes
'ao7' match 'AO-7 (AMSAT-OSCAR 7)' and 'iss zarya' match 'ISS (ZARYA)'.
Numeric queries still match catnum exactly. Covered by 8 new unit tests.
This commit is contained in:
atsunatsu committed 2026-09-18 14:49:41 +08:00
1 parent 7f93a10556
commit 322becdda8
3 files changed
+218 -4

No files matched your search

+2 -2
View File
@@ -1,8 +1,8 @@
[versions]
#noinspection UnusedVersionCatalogEntry
appVersionCode = "479"
appVersionCode = "480"
#noinspection UnusedVersionCatalogEntry
appVersionName = "4.4.7-ba7opf.9"
appVersionName = "4.4.7-ba7opf.10"
#noinspection UnusedVersionCatalogEntry
compileSdk = "37"
#noinspection UnusedVersionCatalogEntry