mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
fix bug 2648: Ignore garbage characters in pdb title.
This commit is contained in:
parent
4598b0238c
commit
ea87d99899
@ -30,7 +30,7 @@ class PdbHeaderReader(object):
|
||||
|
||||
def name(self):
|
||||
self.stream.seek(0)
|
||||
return self.stream.read(32).replace('\x00', '')
|
||||
return re.sub('[^-A-Za-z0-9]+', '', self.stream.read(32).replace('\x00', ''))
|
||||
|
||||
def full_section_info(self, number):
|
||||
if number not in range(0, self.num_sections):
|
||||
|
Loading…
x
Reference in New Issue
Block a user