GNOME Bugzilla – Bug 791198
Use g_str_match_string() instead of custom matching code
Last modified: 2021-06-09 21:08:17 UTC
See https://bugzilla.gnome.org/show_bug.cgi?id=791066#c15 This would require somebody understanding that code first though.
The current code does, or wants to do: (name is the name of the location, key is what the user typed) - split name on "," - split key on spaces - for each split in name: - split on spaces - match each word of key with a word of name (skipping some words of name if needed) - the last word of the match can be a prefix instead of a full match Essentially this boils down to search by state, country (after the ",") or city name, but you cannot straddle across "," or flip words.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/libgweather/-/issues/140.