From e23ed09b25cfb9e33496836d9abfbe7589c2a55b Mon Sep 17 00:00:00 2001 From: HardiReady Date: Mon, 13 Aug 2018 19:24:50 +0200 Subject: [PATCH] Fix flag capture player name resolve --- api/tools/log-parse-tool.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/tools/log-parse-tool.js b/api/tools/log-parse-tool.js index 2ade2c4..c58b410 100644 --- a/api/tools/log-parse-tool.js +++ b/api/tools/log-parse-tool.js @@ -156,7 +156,7 @@ const parseWarLog = (lineArray, war) => { * FLAG */ stats.clean.push(line); - const playerName = line.substring(line.lastIndexOf('rt von ') + 7).slice(0, -2); + const playerName = line.substring(line.lastIndexOf('rt von ') + 7).slice(0, -1); const flagFraction = line.includes('NATO Flagge') ? 'BLUFOR' : 'OPFOR'; const capture = !!line.includes('Flagge erobert');