diff options
author | Lauri Eskola <lauri.eskola@acquia.com> | 2023-03-17 10:03:47 +0200 |
---|---|---|
committer | Lauri Eskola <lauri.eskola@acquia.com> | 2023-03-17 10:03:47 +0200 |
commit | 753eef8a21b8b6039d927fa865e9809bfadbc4ab (patch) | |
tree | ae948b83cdc74c00472d6b63eacf030df5b12dd7 /core/modules/system/js/system.modules.js | |
parent | 982b97a48b29e261e9d5932c08acac860a75e990 (diff) | |
download | drupal-753eef8a21b8b6039d927fa865e9809bfadbc4ab.tar.gz drupal-753eef8a21b8b6039d927fa865e9809bfadbc4ab.zip |
Issue #2978498 by Cottser, Kingdutch: Using the module filter on the module list page a module can only be found by system name if the description ends in a dot
Diffstat (limited to 'core/modules/system/js/system.modules.js')
-rw-r--r-- | core/modules/system/js/system.modules.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/modules/system/js/system.modules.js b/core/modules/system/js/system.modules.js index 2c993da0f01d..44bdf336b371 100644 --- a/core/modules/system/js/system.modules.js +++ b/core/modules/system/js/system.modules.js @@ -44,9 +44,10 @@ '.table-filter-text-source, .module-name, .module-description', ); let sourcesConcat = ''; - // Concatenate the textContent of the elements in the row. + // Concatenate the textContent of the elements in the row, with a + // space in between. sources.forEach((item) => { - sourcesConcat += item.textContent; + sourcesConcat += ` ${item.textContent}`; }); const textMatch = sourcesConcat.search(re) !== -1; $(row).closest('tr').toggle(textMatch); |