From 18c79b7b48c7367d29de62a226e2fa3e00bdbd72 Mon Sep 17 00:00:00 2001 From: Sven Rebhan Date: Wed, 18 Jun 2025 22:36:07 +0200 Subject: [PATCH] Fix version filtering --- layouts/shortcodes/telegraf/plugins.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/telegraf/plugins.html b/layouts/shortcodes/telegraf/plugins.html index 10dfc95df..9681097b4 100644 --- a/layouts/shortcodes/telegraf/plugins.html +++ b/layouts/shortcodes/telegraf/plugins.html @@ -7,7 +7,7 @@ {{ range (index .Site.Data.telegraf_plugins $type ) }} {{ $pluginTags := delimit .tags " " }} {{ $osTags := delimit .os_support " " }} - {{ $minorVer := replaceRE `\.[^.]*$` "" .introduced }} + {{ $minorVer := replaceRE `v([0-9]+\.[0-9]+)\.[0-9]+$` "$1" .introduced }}