From 88cadd36ad562a9813996d8a28b2bafe045de66e Mon Sep 17 00:00:00 2001 From: Worros Date: Wed, 11 Mar 2009 00:57:13 +0900 Subject: [PATCH] Fix Everleaf to start parsing 7 Card Stud games Still missing readAntes --- pyfpdb/EverleafToFpdb.py | 15 ++++++++------- pyfpdb/Hand.py | 6 +++--- pyfpdb/HandHistoryConverter.py | 5 +++-- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/pyfpdb/EverleafToFpdb.py b/pyfpdb/EverleafToFpdb.py index 1e6ee335..20cfe16d 100755 --- a/pyfpdb/EverleafToFpdb.py +++ b/pyfpdb/EverleafToFpdb.py @@ -27,7 +27,7 @@ class Everleaf(HandHistoryConverter): # Static regexes re_SplitHands = re.compile(r"\n\n+") - re_GameInfo = re.compile(u"^(Blinds )?(?P\$| €|)(?P[.0-9]+)/(?:\$| €)?(?P[.0-9]+) (?PNL|PL|) (?P(Hold\'em|Omaha|7 Card Stud))", re.MULTILINE) + re_GameInfo = re.compile(u"^(Blinds )?(?P\$| €|)(?P[.0-9]+)/(?:\$| €)?(?P[.0-9]+) (?PNL|PL|) ?(?P(Hold\'em|Omaha|7 Card Stud))", re.MULTILINE) re_HandInfo = re.compile(u".*#(?P[0-9]+)\n.*\n(Blinds )?(?:\$| €|)(?P[.0-9]+)/(?:\$| €|)(?P[.0-9]+) (?P.*) - (?P\d\d\d\d/\d\d/\d\d - \d\d:\d\d:\d\d)\nTable (?P[- a-zA-Z]+)") re_Button = re.compile(r"^Seat (?P