mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
fix: Crash in share menu when query looks like regex
This commit is contained in:
@@ -106,6 +106,6 @@ export default class GroupsStore extends Store<Group> {
|
||||
|
||||
function queriedGroups(groups: Group[], query: string) {
|
||||
return groups.filter((group) =>
|
||||
group.name.toLowerCase().match(query.toLowerCase())
|
||||
group.name.toLocaleLowerCase().includes(query.toLocaleLowerCase())
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user