diff --git a/src/parser.js b/src/parser.js index 59f6c34..c1783f2 100644 --- a/src/parser.js +++ b/src/parser.js @@ -83,7 +83,7 @@ class Parser { const PATTERNS = Object.freeze({ TABLE: /^Table .+/, - NEW_GAME: /^PokerStars .+ Hand #([0-9]+):.+([0-9]{4}\/[0-9]{2}\/[0-9]{2} [0-9:]+)/, + NEW_GAME: /^PokerStars.+Hand #([0-9]+):.+([0-9]{4}\/[0-9]{2}\/[0-9]{2} [0-9:]+)/, JOIN_TABLE: /^(.+) joins the table at seat/, SEAT: /^Seat [0-9]+: (.+) \(([0-9]+) in chips\)$/, SMALL_BLIND: /^(.+): posts small blind ([0-9]+)$/, @@ -107,7 +107,7 @@ const PATTERNS = Object.freeze({ SUMMARY: /^(\*)+ SUMMARY (\*)+/, SHOWS: /^(.+): shows \[([2-9TJQKA][scdh]) ([2-9TJQKA][scdh])]/, SHOWS_ONE: /^(.+): shows \[([2-9TJQKA][scdh])]/, - COLLECTED: /^(.+) collected ([\-0-9]+) from (side |main )?pot$/, + COLLECTED: /^(.+) collected ([\-0-9]+) from (side |main )?pot/, TOTAL_POT: /^Total pot ([0-9]+).* \| Rake ([0-9]+)$/, BOARD: /^Board \[/, SEAT_SUMMARY: /^Seat [0-9]+: (.+) (\(button\) |\(small blind\) |\(big blind\) )?(folded|showed|mucked|collected)/,