Skip to content

Commit

Permalink
chore: Relax age version regexp
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Nov 30, 2021
1 parent 7be7dfe commit 9939926
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cmd/doctorcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func (c *Config) runDoctorCmd(cmd *cobra.Command, args []string) error {
name: "age-command",
binaryname: c.Age.Command,
versionArgs: []string{"-version"},
versionRx: regexp.MustCompile(`v(\d+\.\d+\.\d+\S*)`),
versionRx: regexp.MustCompile(`(\d+\.\d+\.\d+\S*)`),
ifNotSet: checkResultWarning,
ifNotExist: checkResultInfo,
},
Expand Down

0 comments on commit 9939926

Please sign in to comment.