Update pdfjs version parsing

Fixes #2254
This commit is contained in:
Florian Bruhin 2017-01-27 09:19:10 +01:00
parent 0863c3277c
commit 95aeb86328

View File

@ -210,7 +210,7 @@ def _pdfjs_version():
else:
pdfjs_file = pdfjs_file.decode('utf-8')
version_re = re.compile(
r"^(PDFJS\.version|var pdfjsVersion) = '([^']+)';$", re.MULTILINE)
r"^ *(PDFJS\.version|var pdfjsVersion) = '([^']+)';$", re.MULTILINE)
match = version_re.search(pdfjs_file)
if not match: