🔄 Reorder conditional checks for consistent handling of 'pokemon' in file type and name formatting functions
This commit is contained in:
@@ -804,8 +804,8 @@ function formatSize(bytes) {
|
||||
function getFileType(filename) {
|
||||
if (filename.includes('AllForms') || filename.includes('allForms'))
|
||||
return 'allForms';
|
||||
if (filename.includes('pokemon')) return 'pokemon';
|
||||
if (filename.includes('moves')) return 'moves';
|
||||
if (filename.includes('pokemon')) return 'pokemon';
|
||||
if (filename.includes('raw')) return 'raw';
|
||||
return '';
|
||||
}
|
||||
@@ -813,8 +813,8 @@ function getFileType(filename) {
|
||||
function formatFileName(filename) {
|
||||
if (filename.includes('AllForms') || filename.includes('allForms'))
|
||||
return 'Pokemon All Forms';
|
||||
if (filename.includes('pokemon')) return 'Pokemon';
|
||||
if (filename.includes('moves')) return 'Moves';
|
||||
if (filename.includes('pokemon')) return 'Pokemon';
|
||||
if (filename.includes('raw')) return 'Raw Gamemaster';
|
||||
return filename;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user