-
-
Notifications
You must be signed in to change notification settings - Fork 621
Open
Description
Describe the feature request
I propose a feature for UI - search by regex by default
This would not break the current behaviour but it would improve search for advanced users.
gatus/web/app/src/views/Home.vue
Lines 234 to 236 in 9f960fd
| filtered = filtered.filter(endpoint => | |
| endpoint.name.toLowerCase().includes(query) || | |
| (endpoint.group && endpoint.group.toLowerCase().includes(query)) |
Simple change would be required:
if (searchQuery.value) {
const query = searchQuery.value.toLowerCase()
const regexp = new RegExp(query, 'g');
filtered = filtered.filter(endpoint =>
null !== (endpoint.name.toLowerCase().match(regexp) ?? (endpoint.group && endpoint.group.toLowerCase().match(regexp)) ?? null)
)
}Why do you personally want this feature to be implemented?
I want to be able to search more complex names and endpoint across groups when just plain grouping does not provide the needed granularity.
How long have you been using this project?
No response
Additional information
No response
Metadata
Metadata
Assignees
Labels
No labels