mirror of
https://github.com/cinnyapp/cinny.git
synced 2025-11-13 02:30:29 +03:00
Fix loading on older browsers (#397)
This commit is contained in:
parent
13248962af
commit
a2655ee6a5
3 changed files with 5 additions and 5 deletions
|
|
@ -88,7 +88,7 @@ function SpaceAddExistingContent({ roomId }) {
|
|||
};
|
||||
|
||||
const handleSearch = (ev) => {
|
||||
const term = ev.target.value.toLocaleLowerCase().replaceAll(' ', '');
|
||||
const term = ev.target.value.toLocaleLowerCase().replace(/\s/g, '');
|
||||
if (term === '') {
|
||||
setSearchIds(null);
|
||||
return;
|
||||
|
|
@ -100,7 +100,7 @@ function SpaceAddExistingContent({ roomId }) {
|
|||
if (!name) return false;
|
||||
name = name.normalize('NFKC')
|
||||
.toLocaleLowerCase()
|
||||
.replaceAll(' ', '');
|
||||
.replace(/\s/g, '');
|
||||
return name.includes(term);
|
||||
});
|
||||
setSearchIds(searchedIds);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue