MCPcopy Create free account
hub / github.com/cloudfoundry/java-buildpack / normalizeVersionPattern

Function normalizeVersionPattern

src/java/jres/jre.go:313–321  ·  view source on GitHub ↗
(version string)

Source from the content-addressed store, hash-verified

311}
312
313func normalizeVersionPattern(version string) string {
314 if strings.Contains(version, "+") {
315 return strings.ReplaceAll(version, "+", "*")
316 }
317 if strings.Contains(version, "*") {
318 return version
319 }
320 return version + ".*"
321}
322
323func parseJBPConfigVersion(configValue string) string {
324 re := regexp.MustCompile(`version:\s*['"]?([0-9]+[0-9.*+]*)['"]?`)

Callers 1

GetJREVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected