Skip to content

Commit 268f4ca

Browse files
authored
fix: readme generation bug (Azure#17726)
1 parent 4dbc884 commit 268f4ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eng/tools/generator/cmd/v2/common/fileProcessor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const (
3333
var (
3434
v2BeginRegex = regexp.MustCompile("^```\\s*yaml\\s*\\$\\(go\\)\\s*&&\\s*\\$\\((track2|v2)\\)")
3535
v2EndRegex = regexp.MustCompile("^\\s*```\\s*$")
36-
newClientMethodNameRegex = regexp.MustCompile("^New.+Client$")
36+
newClientMethodNameRegex = regexp.MustCompile("^New.*Client$")
3737
versionLineRegex = regexp.MustCompile(`moduleVersion\s*=\s*\".*v\d+\.\d+\.\d+\"`)
3838
changelogVersionRegex = regexp.MustCompile(`##\s*(?P<version>\d+\.\d+\.\d+)\s*\((\d{4}-\d{2}-\d{2}|Unreleased)\)`)
3939
packageConfigRegex = regexp.MustCompile(`\$\((package-.+)\)`)

0 commit comments

Comments
 (0)