From 4727a65f08e899d8151d54d65d9e792506a42425 Mon Sep 17 00:00:00 2001 From: Axel Svensson Date: Sat, 15 Jun 2024 15:58:38 +0000 Subject: [PATCH] WIP: fix regex escapes --- pdf-sign | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdf-sign b/pdf-sign index d05c22c..c67fb7b 100755 --- a/pdf-sign +++ b/pdf-sign @@ -434,7 +434,7 @@ def pdfCountPages(filePath): return int(fromCmdOutput(["pdfinfo", str(filePath)], "^.*\nPages: +([0-9]+)\n.*$")[1]) def pdfGetSize(filePath): - [ignored, w, h, *ignored2]=fromCmdOutput(['pdfinfo', filePath], '^.*\nPage size: +([0-9.]+) x ([0-9.]+) pts( \([A-Za-z0-9]+\))?\n.*$') + [ignored, w, h, *ignored2]=fromCmdOutput(['pdfinfo', filePath], '^.*\nPage size: +([0-9.]+) x ([0-9.]+) pts( \\([A-Za-z0-9]+\\))?\n.*$') return (float(w), float(h)) def m(pattern, string):