Skip to content
This repository has been archived by the owner on May 17, 2019. It is now read-only.

Commit

Permalink
dont use lstrip
Browse files Browse the repository at this point in the history
  • Loading branch information
noah committed Nov 2, 2016
1 parent ffe04dc commit 54a47b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion native_package_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def namespace_from_repo(repository):
['NoRedInk', 'noredink']
"""

repo_without_domain = repository.lstrip('https://github.com/').rstrip('.git')
repo_without_domain = repository.split('https://github.com/')[1].split('.git')[0]

(namespace, name) = repo_without_domain.split('/')
return [namespace, name]
Expand Down

0 comments on commit 54a47b7

Please sign in to comment.