getVersionPart function

String getVersionPart (
  1. String version
)

Implementation

String getVersionPart(String version) {
  if (version == null) {
    return null;
  }

  if (hasWildCard(version)) {
    return version.replaceAll(wildCardPrefixExp, '');
  }

  return version;
}