From bef382920ed4b42ea15979b51e5b0f3bbafca452 Mon Sep 17 00:00:00 2001 From: Mikhail Klementev Date: Thu, 11 May 2023 21:35:20 +0000 Subject: [PATCH] Fix regexp --- distro/debian/kernel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distro/debian/kernel.go b/distro/debian/kernel.go index 9835b46..dba85ff 100644 --- a/distro/debian/kernel.go +++ b/distro/debian/kernel.go @@ -34,7 +34,7 @@ var ( func GetDebianKernel(version string) (dk DebianKernel, err error) { dk.Version.Package = version - regex := `^linux-(image|headers)-[bporcexp~0-9\.\-]*-(amd64|amd64-unsigned)$` + regex := `^linux-(image|headers)-[bporcexp+~0-9\.\-]*-(amd64|amd64-unsigned)$` packages, err := snapshot.Packages("linux", version, "amd64", regex) if err != nil {