From 731d4783ce58ca61be9b8a1902f7fbccfd5456f3 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Mon, 25 Apr 2022 11:52:12 +0200 Subject: [PATCH] api-types: more regex fixups Signed-off-by: Wolfgang Bumiller Signed-off-by: Thomas Lamprecht --- pbs-api-types/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pbs-api-types/src/lib.rs b/pbs-api-types/src/lib.rs index 17eeb52b..4f0c9203 100644 --- a/pbs-api-types/src/lib.rs +++ b/pbs-api-types/src/lib.rs @@ -30,7 +30,7 @@ macro_rules! BACKUP_TIME_RE { () => (r"[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9] #[macro_export] macro_rules! BACKUP_NS_RE { () => ( - concat!(r"(:?", PROXMOX_SAFE_ID_REGEX_STR!(), r"/){0,7}", PROXMOX_SAFE_ID_REGEX_STR!()) + concat!(r"(?:", PROXMOX_SAFE_ID_REGEX_STR!(), r"/){0,7}", PROXMOX_SAFE_ID_REGEX_STR!()) ); } @@ -38,7 +38,7 @@ macro_rules! BACKUP_NS_RE { #[macro_export] macro_rules! BACKUP_NS_PATH_RE { () => ( - concat!(r"(:?ns/", PROXMOX_SAFE_ID_REGEX_STR!(), r"/){0,7}ns/", PROXMOX_SAFE_ID_REGEX_STR!()) + concat!(r"(?:ns/", PROXMOX_SAFE_ID_REGEX_STR!(), r"/){0,7}ns/", PROXMOX_SAFE_ID_REGEX_STR!()) ); }