From 4e4232c45e266657d0f6e5b18441a7c24545ebe5 Mon Sep 17 00:00:00 2001 From: Aidan Date: Mon, 14 Apr 2025 23:37:59 -0400 Subject: [PATCH] hf: replace all ">" and "<" in username (#37) --- src/commands/gsmarena.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/gsmarena.js b/src/commands/gsmarena.js index db9ce08..6f5a01a 100644 --- a/src/commands/gsmarena.js +++ b/src/commands/gsmarena.js @@ -199,7 +199,7 @@ module.exports = (bot) => { let userName = String(ctx.from.first_name); if(userName.includes("<") && userName.includes(">")) { - userName = userName.replace("<", "").replace(">", ""); + userName = userName.replaceAll("<", "").replaceAll(">", ""); } const phone = ctx.message.text.split(" ").slice(1).join(" ");