From fe4725658edddda428ea49aa2e9c85b3bf7c2a0c Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Sun, 27 Oct 2024 14:57:21 -0700 Subject: [PATCH] unpaper: fix regex --- src/ocrmypdf/_exec/unpaper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ocrmypdf/_exec/unpaper.py b/src/ocrmypdf/_exec/unpaper.py index 9c9c21abc..a5a92f4c8 100644 --- a/src/ocrmypdf/_exec/unpaper.py +++ b/src/ocrmypdf/_exec/unpaper.py @@ -48,7 +48,7 @@ def __init__( def version() -> Version: - return Version(get_version('unpaper', regex=r'(?m).*(\d+(\.\d+)(\.\d+)?)')) + return Version(get_version('unpaper', regex=r'(?m).*?(\d+(\.\d+)(\.\d+)?)')) @contextmanager