stuff
This commit is contained in:
parent
8330b834a1
commit
f8ebf84688
|
@ -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());
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue