Skip to content

Commit a2e6f37

Browse files
committed
fix: bad naming of version in changelog section
1 parent fed8b4e commit a2e6f37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/io/github/zorin95670/semver/model/ChangelogReleaseSection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public void setTitle(String version, Instant date) {
2222
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd")
2323
.withZone(ZoneId.systemDefault());
2424
String formattedDate = formatter.format(date);
25-
title = String.format("[%s] - %s", version, formattedDate);
25+
title = String.format("[%s] - %s", version.substring(1), formattedDate);
2626
this.version = version;
2727
isUnreleased = false;
2828
}

0 commit comments

Comments
 (0)