From 2e2a777b1172c926d05726ffca88d55ba6e50a5a Mon Sep 17 00:00:00 2001 From: John Lancaster <32917998+jsl12@users.noreply.github.com> Date: Mon, 3 Jun 2024 20:50:02 -0500 Subject: [PATCH] improved regex for printout --- src/restic/prune.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/restic/prune.py b/src/restic/prune.py index 8045dc2..8b94a9d 100644 --- a/src/restic/prune.py +++ b/src/restic/prune.py @@ -12,7 +12,7 @@ from restic.console import console, logger from restic.loki import send_to_loki field_regex = re.compile( - r'^(?P[\w ]+):\s+(?P\d+) blobs \/ (?P\d+(\.\d+)? (M|G)iB)', re.MULTILINE + r'^(?P[\w ]+):\s+(?P\d+) blobs \/ (?P\d+(\.\d+)? (?:Mi|Gi)?B)', re.MULTILINE )