Skip to content

Commit 7162120

Browse files
Cycloctanemlinksva
andauthored
Update assets/js/app.coffee
Co-authored-by: Mike Linksvayer <mlinksva@github.com>
1 parent 1abac18 commit 7162120

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/js/app.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class LicenseSuggestion
112112

113113
# Try to extract the repository full name from the user input
114114
parseUserInput: (userInput) ->
115-
repository = /https?:\/\/github\.com\/([^\/]+)\/([^\/]+)\/?$/.exec userInput
115+
repository = /https?:\/\/github\.com\/([^\/]+)\/([^\/]+)/.exec userInput
116116
[_, username, project] = repository
117117
return username + '/' + project.replace /(\.git)$/, ''
118118

0 commit comments

Comments
 (0)