From 6862357ed2f58b12c8ee4369af330eb3c634b688 Mon Sep 17 00:00:00 2001 From: Cazka Date: Sun, 2 Oct 2022 21:42:49 +0200 Subject: [PATCH] fix regex to detect tank and level --- src/apis/player.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apis/player.ts b/src/apis/player.ts index f851252..a24763c 100644 --- a/src/apis/player.ts +++ b/src/apis/player.ts @@ -76,7 +76,7 @@ class Player extends EventEmitter { // tank and level event listener CanvasKit.hookCtx('fillText', (target, thisArg, args) => { const text = args[0]; - const match = text.match(/^Lvl (\d+) (\w*)$/); + const match = text.match(/^Lvl (\d+) (\w+\s?\w*)$/); if (match == null) { return; }