🔄 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) {
|
function getFileType(filename) {
|
||||||
if (filename.includes('AllForms') || filename.includes('allForms'))
|
if (filename.includes('AllForms') || filename.includes('allForms'))
|
||||||
return 'allForms';
|
return 'allForms';
|
||||||
if (filename.includes('pokemon')) return 'pokemon';
|
|
||||||
if (filename.includes('moves')) return 'moves';
|
if (filename.includes('moves')) return 'moves';
|
||||||
|
if (filename.includes('pokemon')) return 'pokemon';
|
||||||
if (filename.includes('raw')) return 'raw';
|
if (filename.includes('raw')) return 'raw';
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
@@ -813,8 +813,8 @@ function getFileType(filename) {
|
|||||||
function formatFileName(filename) {
|
function formatFileName(filename) {
|
||||||
if (filename.includes('AllForms') || filename.includes('allForms'))
|
if (filename.includes('AllForms') || filename.includes('allForms'))
|
||||||
return 'Pokemon All Forms';
|
return 'Pokemon All Forms';
|
||||||
if (filename.includes('pokemon')) return 'Pokemon';
|
|
||||||
if (filename.includes('moves')) return 'Moves';
|
if (filename.includes('moves')) return 'Moves';
|
||||||
|
if (filename.includes('pokemon')) return 'Pokemon';
|
||||||
if (filename.includes('raw')) return 'Raw Gamemaster';
|
if (filename.includes('raw')) return 'Raw Gamemaster';
|
||||||
return filename;
|
return filename;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user