mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 16:16:41 +01:00
Also check for the C1 control chars
This commit is contained in:
parent
0053ee6456
commit
5ac2ae511f
1 changed files with 1 additions and 1 deletions
|
|
@ -653,7 +653,7 @@ def check(f):
|
|||
|
||||
def check_for_control_chars(f):
|
||||
raw = open(f, 'rb').read().decode('utf-8')
|
||||
pat = re.compile(ur'[\0-\x08\x0b\x0c\x0e-\x1f\x7f]')
|
||||
pat = re.compile(ur'[\0-\x08\x0b\x0c\x0e-\x1f\x7f\x80-\x9f]')
|
||||
errs = []
|
||||
for i, line in enumerate(raw.splitlines()):
|
||||
if pat.search(line) is not None:
|
||||
|
|
|
|||
Loading…
Reference in a new issue