1
0

Fix regex

This commit is contained in:
dump_stack() 2023-05-11 20:42:25 +00:00
parent 68ad89973c
commit 2b0d7b0460
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -34,7 +34,7 @@ var (
func GetDebianKernel(version string) (dk DebianKernel, err error) {
dk.Version.Package = version
regex := `^linux-(image|headers)-[0-9\.\-]*-(amd64|amd64-unsigned)$`
regex := `^linux-(image|headers)-[a-z0-9\.\-]*-(amd64|amd64-unsigned)$`
packages, err := snapshot.Packages("linux", version, "amd64", regex)
if len(packages) == 0 {