fix: normalize character status text to lowercase for consistency
All checks were successful
Build Docker Image / build (push) Successful in 1m22s
All checks were successful
Build Docker Image / build (push) Successful in 1m22s
This commit is contained in:
@@ -804,11 +804,11 @@ function extractStatus($: cheerio.CheerioAPI): string | null {
|
||||
|
||||
const statusText = div.text().trim().toLowerCase();
|
||||
|
||||
if (statusText.includes('Alive')) {
|
||||
if (statusText.includes('alive')) {
|
||||
return 'Alive';
|
||||
} else if (statusText.includes('Dead')) {
|
||||
} else if (statusText.includes('deceased')) {
|
||||
return 'Dead';
|
||||
} else if (statusText.includes('Unknown')) {
|
||||
} else if (statusText.includes('unknown')) {
|
||||
return 'Unknown';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user