pub(crate) fn pad_major_minor_patch(version: &str) -> String
Expand description
The following are dumb string manipulations to pad out a version number. We might use a version library if we need much more functionality, but right now it’s isolated in a single file where it can be replaced as/when necessary.
pad_major_minor_patch will zero pad the minor and patch versions if they are not present. 112.1.3 –> 112.1.3 112.1 –> 112.1.0 112 –> 112.0.0