From f7849d2956d3d1d324b270b37a2c044b863676c4 Mon Sep 17 00:00:00 2001 From: Selfhost Alt Date: Thu, 14 Sep 2023 22:12:22 -0700 Subject: [PATCH] Fix typo in fixParsedNameCase --- server/utils/parsers/parseFullName.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/utils/parsers/parseFullName.js b/server/utils/parsers/parseFullName.js index daf2de27..c6d82e40 100644 --- a/server/utils/parsers/parseFullName.js +++ b/server/utils/parsers/parseFullName.js @@ -70,8 +70,8 @@ module.exports = (nameToParse, partToReturn, fixCase, stopOnError, useLongLists) namePartWords[j].slice(3).toLowerCase(); } else if ( namePartLabels[j] === 'suffix' && - nameParts[j].slice(-1) !== '.' && - !suffixList.indexOf(nameParts[j].toLowerCase()) + namePartWords[j].slice(-1) !== '.' && + !suffixList.indexOf(namePartWords[j].toLowerCase()) ) { // Convert suffix abbreviations to UPPER CASE if (namePartWords[j] === namePartWords[j].toLowerCase()) { namePartWords[j] = namePartWords[j].toUpperCase(); @@ -343,4 +343,4 @@ module.exports = (nameToParse, partToReturn, fixCase, stopOnError, useLongLists) parsedName = fixParsedNameCase(parsedName, fixCase); return partToReturn === 'all' ? parsedName : parsedName[partToReturn]; -}; \ No newline at end of file +};