parent
0863c3277c
commit
95aeb86328
@ -210,7 +210,7 @@ def _pdfjs_version():
|
|||||||
else:
|
else:
|
||||||
pdfjs_file = pdfjs_file.decode('utf-8')
|
pdfjs_file = pdfjs_file.decode('utf-8')
|
||||||
version_re = re.compile(
|
version_re = re.compile(
|
||||||
r"^(PDFJS\.version|var pdfjsVersion) = '([^']+)';$", re.MULTILINE)
|
r"^ *(PDFJS\.version|var pdfjsVersion) = '([^']+)';$", re.MULTILINE)
|
||||||
|
|
||||||
match = version_re.search(pdfjs_file)
|
match = version_re.search(pdfjs_file)
|
||||||
if not match:
|
if not match:
|
||||||
|
Loading…
Reference in New Issue
Block a user