From 22c647fbef9d62531fda2b1e83edab406837f957 Mon Sep 17 00:00:00 2001 From: Jean-Francois Levesque Date: Wed, 28 Jun 2023 08:53:28 -0400 Subject: [PATCH] Fix CentOS Release Regex --- os.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os.go b/os.go index f6b716d..82486ed 100644 --- a/os.go +++ b/os.go @@ -25,7 +25,7 @@ var ( reID = regexp.MustCompile(`^ID=(.*)$`) reVersionID = regexp.MustCompile(`^VERSION_ID=(.*)$`) reUbuntu = regexp.MustCompile(`[\( ]([\d\.]+)`) - reCentOS = regexp.MustCompile(`^CentOS( Linux)? release ([\d\.]+) `) + reCentOS = regexp.MustCompile(`^CentOS( Linux)? release ([\d\.]+)`) reRedHat = regexp.MustCompile(`[\( ]([\d\.]+)`) )