Skip to content

Commit

Permalink
Fix map end pattern for other game modes
Browse files Browse the repository at this point in the history
  • Loading branch information
JensForstmann committed Oct 13, 2023
1 parent 1842ab6 commit e13b629
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/src/match.ts
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,9 @@ const onLogLine = async (match: Match, line: string) => {
return;
}

const mapEndPattern = /Game Over: competitive (.*) score (\d+):(\d+) after (\d+) min$/;
// Game Over: competitive de_overpass score 13:0 after 3 min
// Game Over: scrimcomp2v2 de_overpass score 9:0 after 3 min
const mapEndPattern = /Game Over: .*? score (\d+):(\d+)/;
const mapEndMatch = line.match(new RegExp(dateTimePattern.source + mapEndPattern.source));
if (mapEndMatch) {
await onMapEnd(match);
Expand Down

0 comments on commit e13b629

Please sign in to comment.