Skip to content

Commit

Permalink
Fix CentOS Release Regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Francois Levesque authored and zcalusic committed Jun 28, 2023
1 parent 3afea47 commit 22c647f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion os.go
Original file line number Diff line number Diff line change
Expand Up @@ -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\.]+)`)
)

Expand Down

0 comments on commit 22c647f

Please sign in to comment.