diff options
Diffstat (limited to 'crates/shirabe/src/composer.rs')
| -rw-r--r-- | crates/shirabe/src/composer.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/shirabe/src/composer.rs b/crates/shirabe/src/composer.rs index 25e509c..7d1ad19 100644 --- a/crates/shirabe/src/composer.rs +++ b/crates/shirabe/src/composer.rs @@ -32,7 +32,9 @@ impl Composer { if Self::VERSION == "@package_version@" { return Self::SOURCE_VERSION.to_string(); } - if Self::BRANCH_ALIAS_VERSION != "" && Preg::is_match("{^[a-f0-9]{40}$}", Self::VERSION).unwrap_or(false) { + if Self::BRANCH_ALIAS_VERSION != "" + && Preg::is_match("{^[a-f0-9]{40}$}", Self::VERSION).unwrap_or(false) + { return format!("{}+{}", Self::BRANCH_ALIAS_VERSION, Self::VERSION); } Self::VERSION.to_string() |
