gnome-shell/js/misc
Florian Müllner f6dc96301a 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-10-06 20:35:26 +02:00
..
config.js.in networkAgent: Drop VPN plugin cache 2020-03-17 14:07:15 +00:00
extensionUtils.js extensionUtils: Add openPrefs() convenience method 2020-04-03 17:00:07 +02:00
fileUtils.js fileUtils: Remove some compatibility code 2020-03-09 13:18:48 +00:00
gnomeSession.js cleanup: Require "dangling" commas 2019-11-11 19:25:14 +00:00
history.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
ibusManager.js ibusManager: Simplify code a bit 2020-03-24 08:27:27 +01:00
inputMethod.js inputMethod: Protect for running with older mutter versions 2020-03-28 16:38:10 +00:00
introspect.js introspect: Add AnimationsEnabled property 2020-02-20 11:14:55 +00:00
jsParse.js cleanup: Avoid unnecessary parentheses 2019-11-11 19:25:14 +00:00
keyboardManager.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
loginManager.js cleanup: Use JSDoc for documentation comments 2019-11-11 19:25:14 +00:00
meson.build networkAgent: Drop VPN plugin cache 2020-03-17 14:07:15 +00:00
modemManager.js modemManager: fixed dbus path for GDBusProxy 2020-03-19 12:23:26 +01:00
objectManager.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
params.js cleanup: Only omit braces for single-line blocks 2019-11-11 19:25:14 +00:00
permissionStore.js cleanup: Mark globals used from other modules as exported 2019-07-24 00:28:45 +02:00
smartcardManager.js cleanup: Avoid unnecessary braces 2019-11-11 19:25:14 +00:00
systemActions.js systemActions: Filter out empty (folded) terms 2020-10-06 20:35:26 +02:00
util.js util: Don't wiggle when animations are disabled 2020-02-22 16:38:43 +00:00
weather.js weather: Only require auto-location authorization if sandboxed 2019-12-09 11:10:54 +00:00