diff --git a/go/tools/bazel_testing/bazel_testing.go b/go/tools/bazel_testing/bazel_testing.go index 4d1ea2f85b..aa2d29ee8f 100644 --- a/go/tools/bazel_testing/bazel_testing.go +++ b/go/tools/bazel_testing/bazel_testing.go @@ -441,7 +441,7 @@ func loadWorkspaceName(workspacePath string) (string, error) { if err != nil { return "", err } - nameRe := regexp.MustCompile(`(?m)^workspace\(\s*name\s*=\s*("[^"]*"|'[^']*')\s*,?\s*\)$`) + nameRe := regexp.MustCompile(`(?m)^workspace\(\s*name\s*=\s*("[^"]*"|'[^']*')\s*,?\s*\)\s*$`) match := nameRe.FindSubmatchIndex(workspaceData) if match == nil { return "", fmt.Errorf("%s: workspace name not set", workspacePath)