mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-23 17:38:54 +02:00
Some apps names or keywords contain multiple words. For example 'LibreOffice Calc' contains the word 'Calc'. This is rightfully detected as a prefix match, however generally it is expected that searching for 'calc' would consistantly return 'Calculator' in first position, instead of ranking them equally. We now prioritise tokens that would otherwise rank equal based on where they occur in the string, giving earlier occurences precedence.