Fix flag capture player name resolve

pull/44/head
HardiReady 2018-08-13 19:24:50 +02:00
parent ee5dcd7fa8
commit e23ed09b25
1 changed files with 1 additions and 1 deletions

View File

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