diff --git a/lib/bolt/core/src/context/project.rs b/lib/bolt/core/src/context/project.rs index e228b36642..305e91e727 100644 --- a/lib/bolt/core/src/context/project.rs +++ b/lib/bolt/core/src/context/project.rs @@ -214,6 +214,13 @@ impl ProjectContextData { } } + // MARK: Api + if let Some(hub_origin_regex) = &self.ns().rivet.api.hub_origin_regex { + if let Err(err) = regex::Regex::new(&hub_origin_regex) { + panic!("invalid hub origin regex: {err}"); + } + } + // MARK: Backend if self.ns().rivet.backend.is_some() { assert!(