From d0e0f7d2178bb805a2b3bc724e8d0ca5c861d5f1 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Mon, 5 Oct 2020 19:29:15 -0400 Subject: [PATCH] Fix --- structures/pokemon/Pokemon.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/structures/pokemon/Pokemon.js b/structures/pokemon/Pokemon.js index 68eacfa5..929d9acf 100644 --- a/structures/pokemon/Pokemon.js +++ b/structures/pokemon/Pokemon.js @@ -6,7 +6,7 @@ module.exports = class Pokemon { constructor(store, data) { this.store = store; this.id = data.id; - const slugName = firstUpperCase(data.name).replace(new RegExp(`${this.slug}-?`, 'i'), '').replace(/-/g, ' '); + const slugName = firstUpperCase(data.name).replace(/-/g, ' '); this.name = data.names.length ? data.names.find(entry => entry.language.name === 'en').name : slugName;