build, changelog: fix signing when building source package
Some checks failed
CI / build (push) Failing after 7m8s

This commit is contained in:
2026-01-09 17:21:07 +01:00
parent e2838bf5aa
commit 1b659ce6f4
2 changed files with 15 additions and 12 deletions

View File

@@ -146,13 +146,13 @@ pub fn parse_changelog_footer(path: &Path) -> Result<(String, String), Box<dyn s
// Find the last maintainer line (format: -- Name <email> Date)
let re = Regex::new(r"--\s*([^<]+?)\s*<([^>]+)>\s*")?;
if let Some(last_match) = re.captures_iter(&content).last() {
let name = last_match
if let Some(first_match) = re.captures_iter(&content).next() {
let name = first_match
.get(1)
.map_or("", |m| m.as_str())
.trim()
.to_string();
let email = last_match
let email = first_match
.get(2)
.map_or("", |m| m.as_str())
.trim()