fix: fixed captial letter uppercase issue
This commit is contained in:
@@ -149,7 +149,7 @@ export const findCodename = (
|
|||||||
engkinNameArray.forEach((word, index) => {
|
engkinNameArray.forEach((word, index) => {
|
||||||
if (/^[a-zA-Z]+$/.test(word)) {
|
if (/^[a-zA-Z]+$/.test(word)) {
|
||||||
word = word.toLowerCase()
|
word = word.toLowerCase()
|
||||||
if (UPPER_CASE_EXCEPTION_WORDS.includes(word)) {
|
if (UPPER_CASE_EXCEPTION_WORDS.includes(word) && index !== 0) {
|
||||||
engkinNameArray[index] = word
|
engkinNameArray[index] = word
|
||||||
} else {
|
} else {
|
||||||
engkinNameArray[index] =
|
engkinNameArray[index] =
|
||||||
|
|||||||
Reference in New Issue
Block a user