HHC: FTP archive regex fix.

The number of '*'s in the FTP header changes as the handid gets higher.

Allow for between 20 and 25 '*'s
This commit is contained in:
Worros 2011-01-24 13:16:38 +08:00
parent 98347b21ad
commit bd5b0769e8

View File

@ -258,7 +258,7 @@ which it expects to find at self.re_TailSplitHands -- see for e.g. Everleaf.py.
if self.ftpArchive == True:
log.debug(_("Converting ftpArchive format to readable"))
# Remove ******************** # 1 *************************
m = re.compile('\*{20}\s#\s\d+\s\*{25}\s+', re.MULTILINE)
m = re.compile('\*{20}\s#\s\d+\s\*{20,25}\s+', re.MULTILINE)
self.obs = m.sub('', self.obs)
if self.obs is None or self.obs == "":