Skip to content

Commit fee0d8e

Browse files
authored
ignore query and fragment in repository url regex
1 parent 7162120 commit fee0d8e

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)