diff --git a/src/server/load-pet-data.js b/src/server/load-pet-data.js index 59cb19d..b21f455 100644 --- a/src/server/load-pet-data.js +++ b/src/server/load-pet-data.js @@ -33,13 +33,11 @@ export async function loadCustomPetData(petName) { // prepending "@", which is a special code that can *also* be used in the // CustomPetService in place of name, to get a pet's appearance from its image // hash. - if (petName.match(/^[0-9]/)) { - const imageHash = await loadImageHashFromPetName(petName); - console.debug( - `[loadCustomPetData] Converted pet name ${petName} to @${imageHash}`, - ); - petName = "@" + imageHash; - } + const imageHash = await loadImageHashFromPetName(petName); + console.debug( + `[loadCustomPetData] Converted pet name ${petName} to @${imageHash}`, + ); + petName = "@" + imageHash; try { return neopetsAmfphpCall("CustomPetService.getViewerData", [petName]);