Fix player name parsing from Fraktionsuebersicht

pull/18/head
HardiReady 2017-11-10 15:15:24 +01:00
parent 15333858ac
commit d5df4b9a9f
2 changed files with 6 additions and 6 deletions

View File

@ -165,7 +165,7 @@ const parseWarLog = (lineArray, war) => {
* PLAYERS
*/
else if (line.includes('Fraktionsübersicht ||')) {
const playerString = line.substring(line.lastIndexOf('Fraktionsübersicht || ') + 22, line.lastIndexOf(' :OPT LOG END'));
const playerString = line.substring(line.lastIndexOf('Fraktionsübersicht || ') + 22, line.lastIndexOf(', PUID'));
addPlayerIfNotExists(playerString)
}
});

View File

@ -165,11 +165,11 @@
</div>
</tab>
<tab>
<ng-template tabHeading>
<img src="../../../assets/player-stats-btn.png"> Player
</ng-template>
</tab>
<!--<tab>-->
<!--<ng-template tabHeading>-->
<!--<img src="../../../assets/player-stats-btn.png"> Player-->
<!--</ng-template>-->
<!--</tab>-->
</tabset>
</div>