From 086a2e6de4293ba9e62b3440a88d9e8004065158 Mon Sep 17 00:00:00 2001 From: Bas Zalmstra Date: Tue, 20 Aug 2024 15:04:22 +0200 Subject: [PATCH] fix: parse specs in lenient mode --- src/cli/has_specs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/has_specs.rs b/src/cli/has_specs.rs index 9b451402c..3884cfbe9 100644 --- a/src/cli/has_specs.rs +++ b/src/cli/has_specs.rs @@ -14,7 +14,7 @@ pub(crate) trait HasSpecs { fn specs(&self) -> miette::Result> { let mut map = IndexMap::with_capacity(self.packages().len()); for package in self.packages() { - let spec = MatchSpec::from_str(package, ParseStrictness::Strict).into_diagnostic()?; + let spec = MatchSpec::from_str(package, ParseStrictness::Lenient).into_diagnostic()?; let name = spec.name.clone().ok_or_else(|| { miette::miette!("could not find package name in MatchSpec {}", spec) })?;