Skip to content

Commit

Permalink
Add comments for semver regex (#5758)
Browse files Browse the repository at this point in the history
Signed-off-by: pmahindrakar-oss <[email protected]>
  • Loading branch information
pmahindrakar-oss authored Sep 18, 2024
1 parent 2d9c35b commit 792ce1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions flytepropeller/pkg/controller/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ var (
}

// This regex is used to sanitize semver versions passed to IsSupportedSDK checks for literal offloading feature.
// It matches against 1.13.3 in v1.13.3b0 (beta version) or 1.13.3 in 1.13.3.dev12+g990b450ea.d20240917(dev version)
sanitizeProtoRegex = regexp.MustCompile(`v?(\d+\.\d+\.\d+)`)
)

Expand Down

0 comments on commit 792ce1a

Please sign in to comment.