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:
parent
98347b21ad
commit
bd5b0769e8
|
@ -258,7 +258,7 @@ which it expects to find at self.re_TailSplitHands -- see for e.g. Everleaf.py.
|
||||||
if self.ftpArchive == True:
|
if self.ftpArchive == True:
|
||||||
log.debug(_("Converting ftpArchive format to readable"))
|
log.debug(_("Converting ftpArchive format to readable"))
|
||||||
# Remove ******************** # 1 *************************
|
# 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)
|
self.obs = m.sub('', self.obs)
|
||||||
|
|
||||||
if self.obs is None or self.obs == "":
|
if self.obs is None or self.obs == "":
|
||||||
|
|
Loading…
Reference in New Issue
Block a user