This commit is contained in:
Mirco Wittrien 2021-07-28 20:00:56 +02:00
parent 8330b834a1
commit f8ebf84688
2 changed files with 4 additions and 2 deletions

View File

@ -149,7 +149,8 @@ module.exports = (_ => {
if (!this.props.downloadable) plugins = plugins.filter(plugin => plugin.state != pluginStates.DOWNLOADABLE);
if (searchString) {
let usedSearchString = searchString.toUpperCase();
plugins = plugins.filter(plugin => plugin.search.indexOf(usedSearchString) > -1);
let spacelessUsedSearchString = usedSearchString.replace(/\s/g, "");
plugins = plugins.filter(plugin => plugin.search.indexOf(usedSearchString) > -1 || plugin.search.indexOf(spacelessUsedSearchString) > -1);
}
BDFDB.ArrayUtils.keySort(plugins, this.props.sortKey.toLowerCase());

View File

@ -151,7 +151,8 @@ module.exports = (_ => {
if (!this.props.downloadable) themes = themes.filter(theme => theme.state != themeStates.DOWNLOADABLE);
if (searchString) {
let usedSearchString = searchString.toUpperCase();
themes = themes.filter(theme => theme.search.indexOf(usedSearchString) > -1);
let spacelessUsedSearchString = usedSearchString.replace(/\s/g, "");
themes = themes.filter(theme => theme.search.indexOf(usedSearchString) > -1 || plugin.search.indexOf(spacelessUsedSearchString) > -1);
}
BDFDB.ArrayUtils.keySort(themes, this.props.sortKey.toLowerCase());