From dbb7b73283c1943a6d58b6778bd386071bd36128 Mon Sep 17 00:00:00 2001 From: jdx <216188+jdx@users.noreply.github.com> Date: Sun, 10 Nov 2024 09:44:03 -0600 Subject: [PATCH] Update ubi/src/extension.rs Co-authored-by: Dave Rolsky --- ubi/src/extension.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubi/src/extension.rs b/ubi/src/extension.rs index d53ce3b..a0589fd 100644 --- a/ubi/src/extension.rs +++ b/ubi/src/extension.rs @@ -114,7 +114,7 @@ fn extension_is_platform(ext_str: &OsStr) -> bool { Regex::new( &[ALL_OSES_RE.as_str(), ALL_ARCHES_RE.as_str()] .iter() - .map(|r| format!("({r})")) + .map(|r| format!("(?:{r})")) .join("|"), ) .unwrap()