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 * PLAYERS
*/ */
else if (line.includes('Fraktionsübersicht ||')) { 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) addPlayerIfNotExists(playerString)
} }
}); });

View File

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