Skip to content

Commit 18c79b7

Browse files
committed
Fix version filtering
1 parent c9862a6 commit 18c79b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/shortcodes/telegraf/plugins.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
{{ range (index .Site.Data.telegraf_plugins $type ) }}
88
{{ $pluginTags := delimit .tags " " }}
99
{{ $osTags := delimit .os_support " " }}
10-
{{ $minorVer := replaceRE `\.[^.]*$` "" .introduced }}
10+
{{ $minorVer := replaceRE `v([0-9]+\.[0-9]+)\.[0-9]+$` "$1" .introduced }}
1111

1212
<div class="plugin-card filter-item visible{{ if eq $minorVer $latestTelegrafVersion }} new{{ end }}" id="{{ .id }}" data-tags="{{ $type }} {{ lower $pluginTags }} {{ lower $osTags }} {{ if eq $minorVer $latestTelegrafVersion }}new{{ end }} {{ if .deprecated }}deprecated{{ end }} ">
1313
<div class="info">

0 commit comments

Comments
 (0)