gnome-shell/js
Florian Müllner b2d6c11ec3 systemActions: Filter out empty (folded) terms
We split the search string into words using whitespace, while
GLib.tokenize_and_fold() splits on any non-alphanumeric characters.

That is, a valid search term like ',' will be tokenized as [], so
the original non-empty terms may get mapped to an empty array.

And as [].every() returns true for any condition[0], we end up
matching *all* system actions in that case. We want the exact
opposite and not return any results, so handle that case explicitly.

[0] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/every

https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3169
2020-09-14 21:10:58 +00:00
..
dbusServices dbusServices/screencast: Save under resolved file path 2020-09-02 16:28:48 +02:00
gdm authPrompt: Properly get oVirt service name 2020-08-18 13:31:23 +00:00
misc systemActions: Filter out empty (folded) terms 2020-09-14 21:10:58 +00:00
perf perf: Add basic run tests 2020-08-12 15:43:39 +00:00
portalHelper js: Don't use templates in files with translations 2020-02-17 23:20:40 +01:00
ui aggregateMenu: Move remote-access indicator to the front 2020-09-14 17:13:27 +02:00
js-resources.gresource.xml perf: Add basic run tests 2020-08-12 15:43:39 +00:00
meson.build extensions-app: Move Extensions app to new subproject 2020-03-27 23:33:30 +00:00
portal-resources.gresource.xml js: Remove unused files from resources 2020-03-09 13:18:48 +00:00