Skip to content

Commit

Permalink
Battle analyzer player names with special characters were not recogni…
Browse files Browse the repository at this point in the history
…zed round 4 (#311)
  • Loading branch information
GreatApo committed Dec 31, 2021
1 parent 813511e commit 4901580
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/core/source/reports.js
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,8 @@ var gca_reports = {
// Check for player
let found = false;
for (let i = 0; i < this.players.length; i++) {
if ( text.match(this.players[i][0].replace(renameFix,"")) ) {
let player = this.players[i][0].replace(renameFix,"");
if ( text.match(gca_tools.strings.escapeRegex(player)) ) {
found = true;
this.players[i][1] += value;
this.players[i][3] += value;
Expand Down

0 comments on commit 4901580

Please sign in to comment.