Merge branch 'staging' into slash-fix-bleed

This commit is contained in:
Cohee
2024-02-16 20:48:32 +02:00
26 changed files with 877 additions and 1512 deletions

View File

@ -1121,6 +1121,12 @@ function findCharacterIndex(name) {
(a, b) => a.includes(b),
];
const exactAvatarMatch = characters.findIndex(x => x.avatar === name);
if (exactAvatarMatch !== -1) {
return exactAvatarMatch;
}
for (const matchType of matchTypes) {
const index = characters.findIndex(x => matchType(x.name.toLowerCase(), name.toLowerCase()));
if (index !== -1) {