We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 40e9555 commit cde804dCopy full SHA for cde804d
lib/services/github_service.rb
@@ -12,7 +12,9 @@ def display_name
12
end
13
14
def account
15
- /\/(?<account>[\w-]+)$/ =~ @uri.path
+ # The first part of the path is the user or organization
16
+ # e.g. github.com/GeneralServicesAdministration/ringsail
17
+ /^\/(?<account>[\w-]+)/ =~ @uri.path
18
account
19
20
0 commit comments