aboutsummaryrefslogtreecommitdiffhomepage
path: root/releaser
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2019-02-01 10:09:14 +0100
committerBjørn Erik Pedersen <[email protected]>2019-02-01 10:09:14 +0100
commit9b619dc02325cfd1db6f9ca006200ff51d7ef6f5 (patch)
treee654921c506949bb1eecb679e76df592443850a0 /releaser
parentfab41f42d3e23c11651ab75413b01d97e5d37c30 (diff)
downloadhugo-9b619dc02325cfd1db6f9ca006200ff51d7ef6f5.tar.gz
hugo-9b619dc02325cfd1db6f9ca006200ff51d7ef6f5.zip
releaser: Adjust patch logic
See #5639
Diffstat (limited to 'releaser')
-rw-r--r--releaser/releasenotes_writer.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/releaser/releasenotes_writer.go b/releaser/releasenotes_writer.go
index 4c5dff6d6..6e683771c 100644
--- a/releaser/releasenotes_writer.go
+++ b/releaser/releasenotes_writer.go
@@ -119,7 +119,7 @@ Hugo now has:
var templateFuncs = template.FuncMap{
"isPatch": func(c changeLog) bool {
- return strings.Count(c.Version, ".") > 1
+ return !strings.HasSuffix(c.Version, "0")
},
"issue": func(id int) string {
return fmt.Sprintf(issueLinkTemplate, id, id)