Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,5 +176,4 @@ Feedback, ideas and pull requests are welcome!
Possible:

- Timeout (see [#43](https://github.com/metachris/pdfx/issues/43))
- Cuts off links that span two lines [#40](https://github.com/metachris/pdfx/issues/40)
- Include Check-Links Results in Output [#39](https://github.com/metachris/pdfx/issues/39)
2 changes: 1 addition & 1 deletion pdfx/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from __future__ import absolute_import, division, print_function, unicode_literals

__title__ = "pdfx"
__version__ = "1.4.1"
__version__ = "1.4.2"
__author__ = "Chris Hager"
__license__ = "Apache 2.0"
__copyright__ = "Copyright 2015 Chris Hager"
Expand Down
2 changes: 2 additions & 0 deletions pdfx/extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@


def extract_urls(text):
# Remove line breaks in order to include links spanning over multiple lines
text = text.replace("\n", "")
return set(re.findall(URL_REGEX, text, re.IGNORECASE))


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def parse_requirements(filename):
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# https://packaging.python.org/en/latest/single_source_version.html
version="1.4.1",
version="1.4.2",
description="Extract metadata and URLs from PDF files"
", and download all referenced PDFs",
long_description=long_description,
Expand Down