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');