gnome-shell/js/misc
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
..
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 15:27:37 +02:00
fileUtils.js Move screencasting into a separate service process 2020-07-31 10:51:12 +02: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: Fix the panel after porting to Promises 2020-05-03 23:26:39 +08:00
inputMethod.js js: Promisify async operations 2020-03-31 05:43:40 +00:00
introspect.js cleanup: remove controversial naming 2020-08-04 13:24:50 +02:00
jsParse.js cleanup: Don't linebreak before closing parentheses 2020-04-28 09:04:49 +00:00
keyboardManager.js shell/global: Add 'backend' property 2020-04-27 15:18:18 +00:00
loginManager.js LoginManager: Add canRebootToBootLoaderMenu and setRebootToBootLoaderMenu methods 2020-08-06 15:14:42 +02: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 js: Promisify async operations 2020-03-31 05:43:40 +00:00
params.js cleanup: Only omit braces for single-line blocks 2019-11-11 19:25:14 +00:00
parentalControlsManager.js cleanup: remove controversial naming 2020-08-04 13:24:50 +02: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-09-14 21:10:58 +00:00
util.js util: Remove unused class CloseButton 2020-06-11 20:49:31 +02:00
weather.js js: Promisify async operations 2020-03-31 05:43:40 +00:00