mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-02-04 15:01:46 +00:00
(cherry picked from commit 98a6322c11df365b3b66511d9a7b03bb0c1fbcf8) Signed-off-by: Andy Lee <andy.lee@suse.com> Co-authored-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
parent
1852e434f1
commit
e0c6e905a9
@ -98,8 +98,12 @@ export default {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
const description = this.t(setting.description, this.getDocLinkParams(setting) || {}, true)?.toLowerCase() || '';
|
let description = this.t(setting.description, this.getDocLinkParams(setting) || {}, true)?.toLowerCase() || '';
|
||||||
|
|
||||||
|
// remove <a> tags from description
|
||||||
|
if (description.includes('<a')) {
|
||||||
|
description = description.replace(/<a[^>]*>(.*?)<\/a>/g, '$1');
|
||||||
|
}
|
||||||
// filter by description
|
// filter by description
|
||||||
if (description.includes(searchQuery)) {
|
if (description.includes(searchQuery)) {
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user