getGithubRepoName function

String getGithubRepoName(
  1. String repoUrl
)

Get the github repository name from repoUrl.

Implementation

String getGithubRepoName(final String repoUrl) {
  return Uri.parse(repoUrl).pathSegments.last.replaceAll('.git', '');
}