MCPcopy Index your code
hub / github.com/actions/setup-java / avoidOldNotation

Function avoidOldNotation

src/util.ts:184–186  ·  view source on GitHub ↗
(content: string)

Source from the content-addressed store, hash-verified

182
183// By convention, action expects version 8 in the format `8.*` instead of `1.8`
184function avoidOldNotation(content: string): string {
185 return content.startsWith('1.') ? content.substring(2) : content;
186}
187
188export function convertVersionToSemver(version: number[] | string) {
189 // Some distributions may use semver-like notation (12.10.2.1, 12.10.2.1.1)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected