From b3f9ae253f732e275d45c7c9bf6d3e7926110877 Mon Sep 17 00:00:00 2001 From: Worros Date: Thu, 4 Nov 2010 18:31:14 +0800 Subject: [PATCH] Stars: Make parser ignore Cap limit Header looks like: PokerStars Game #52129212872: Hold'em No Limit ($0.25/$0.50 - $10 Cap - USD) - 2010/11/03 23:45:32 CET [2010/11/03 18:45:32 ET] --- pyfpdb/PokerStarsToFpdb.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyfpdb/PokerStarsToFpdb.py b/pyfpdb/PokerStarsToFpdb.py index 24719de5..fefa1aa6 100644 --- a/pyfpdb/PokerStarsToFpdb.py +++ b/pyfpdb/PokerStarsToFpdb.py @@ -97,10 +97,11 @@ class PokerStars(HandHistoryConverter): (?P%(LS)s|)? (?P[.0-9]+)/(%(LS)s)? (?P[.0-9]+) + (?P\s-\s[%(LS)s\d\.]+\sCap\s-\s)? # Optional Cap part \s?(?P%(LEGAL_ISO)s)? \)\s-\s # close paren of the stakes - (?P.*$)""" % substitutions, - re.MULTILINE|re.VERBOSE) + (?P.*$) + """ % substitutions, re.MULTILINE|re.VERBOSE) re_PlayerInfo = re.compile(u""" ^Seat\s(?P[0-9]+):\s