parseVersion function

String parseVersion(
  1. String version
)

Implementation

String parseVersion(String version) {
  if (version.startsWith('^')) {
    return version.substring(1);
  }
  return version;
}