Skip to content

Commit

Permalink
doctor: Fix regular expression identified by CodeQL
Browse files Browse the repository at this point in the history
CodeQL identified "This regular expression has an unescaped dot before
'com', so it might match more hosts than expected when used ."

Signed-off-by: Tom Payne <tom@isovalent.com>
  • Loading branch information
twpayne authored and errordeveloper committed Oct 11, 2021
1 parent d9da565 commit 6a722d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/dev-doctor/rootcmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func rootCmdRun(cmd *cobra.Command, args []string) {
command: "docker",
ifNotFound: checkWarning,
versionArgs: []string{"buildx", "version"},
versionRegexp: regexp.MustCompile(`github.com/docker/buildx v(\d+\.\d+\.\d+)`),
versionRegexp: regexp.MustCompile(`github\.com/docker/buildx v(\d+\.\d+\.\d+)`),
hint: "see https://docs.docker.com/engine/install/",
},
// FIXME add libelf-devel check?
Expand Down

0 comments on commit 6a722d3

Please sign in to comment.