Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit c8562dc

Browse files
Merge pull request #470 from telerik/vladimirov/fix-gradle-check
Add method for appending version with .0s
2 parents dcdddce + 77296d0 commit c8562dc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

helpers.ts

+9
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,12 @@ export function trimSymbol(str: string, symbol: string) {
137137

138138
return str;
139139
}
140+
141+
export function appendZeroesToVersion(version: string, requiredVersionLength: number): string {
142+
let zeroesToAppend = requiredVersionLength - version.split(".").length;
143+
for (let index = 0; index < zeroesToAppend; index++) {
144+
version += ".0";
145+
}
146+
147+
return version;
148+
}

0 commit comments

Comments
 (0)