Minor fix for spliced names

This commit is contained in:
Flashfyre committed 2023-12-03 00:08:13 -05:00
1 parent 839264506b
commit 2f6f7c9dc6
2 files changed
+3 -1

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ export function getFusedSpeciesName(speciesAName: string, speciesBName: string):
if (fragBMatch) {
const lastCharA = fragA.slice(fragA.length - 1);
const prevCharB = fragBMatch[1].slice(fragBMatch.length - 1);
fragB = (/[\-']/.test(prevCharB) || /[aeiou]/i.test(lastCharA) ? prevCharB : '') + fragBMatch[2] || prevCharB;
fragB = (/[\-']/.test(prevCharB) ? prevCharB : '') + fragBMatch[2] || prevCharB;
if (lastCharA === fragB[0] && /[aiu]/.test(lastCharA))
fragB = fragB.slice(1);
} else