Closed jaywonchung closed 9 months ago
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).
View this failed invocation of the CLA check for more information.
For the most up to date status, view the checks section at the bottom of the pull request.
Thanks @jaywonchung!
This PR regex-escapes filename components so that file/directory names that contain special regex characters do not affect regex matching. Existing logic in
_search_reference
for thestrict=False
codepath were unnecessarily complicated, so along with this change, I refactored existing logic using the built-inpathlib.Path
.I experienced this issue because my figure PDF files had a lot of
+
signs in it and even if they wereincludegraphics
'ed, they were not being copied. This change addressed the issue. I ranpython arxiv_latex_cleaner/tests/arxiv_latex_cleaner_test.py
and all 81 tests passed. I believe this PR should also address #79.