From d4309521f10b6f0090ef2548fb8f241949074e1f Mon Sep 17 00:00:00 2001 From: nsfisis Date: Mon, 4 May 2026 14:48:25 +0900 Subject: feat(show): expand license output with name, OSI flag, and URL Mirror Composer's Command\ShowCommand::printLicenses(): emit one line per license identifier, expanded to " () [(OSI approved)] " when the id is in the SPDX database, or just the id otherwise. The URL is built by mozart-spdx-licenses' new LicenseInfo::url() so the construction lives in the SPDX crate, like Composer's SpdxLicenses::getLicenseByIdentifier(). --- crates/mozart/src/commands/validate.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/mozart/src/commands/validate.rs') diff --git a/crates/mozart/src/commands/validate.rs b/crates/mozart/src/commands/validate.rs index fd7a534..e6778a4 100644 --- a/crates/mozart/src/commands/validate.rs +++ b/crates/mozart/src/commands/validate.rs @@ -440,8 +440,8 @@ fn parse_iso_time_to_unix(s: &str) -> Option { tz_offset_seconds = 0; } else { let body = suffix - .strip_prefix('+') - .or_else(|| suffix.strip_prefix('-'))?; + .strip_prefix('+') + .or_else(|| suffix.strip_prefix('-'))?; let sign = if suffix.starts_with('+') { 1 } else { -1 }; let body: String = body.chars().filter(|c| *c != ':').collect(); if body.len() < 4 { -- cgit v1.3.1