pub fn split_explicit_version(input: &str) -> (&str, Option<&str>)Expand description
Split an inline @version suffix off a spec — port of
splitExplicitVersion in commands/ensure-checkout.ts.
The @ is treated as a version separator only when it is neither the first
character (a bare scoped name @vercel/ai) nor immediately after the
ecosystem-prefix colon (npm:@vercel/ai). Returns the spec body and the
optional version, borrowing from the input.