withoutTrailingSlash(str) {
    if(!str) return str;
    return str.replace(/\/$/, "")
  }
Fix invalid semver formats like `0.14.0rc2`
A valid semver format would be `0.14.0-rc2`
This patch addresses a very specific version invalidity.
It does not intent to fix invalid semver formats in general.
@param version