Skip to content

Commit cde804d

Browse files
committed
Fixed regex for Github accounts.
Addresses bug GH-26.
1 parent 40e9555 commit cde804d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/services/github_service.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ def display_name
1212
end
1313

1414
def account
15-
/\/(?<account>[\w-]+)$/ =~ @uri.path
15+
# The first part of the path is the user or organization
16+
# e.g. github.com/GeneralServicesAdministration/ringsail
17+
/^\/(?<account>[\w-]+)/ =~ @uri.path
1618
account
1719
end
1820

0 commit comments

Comments
 (0)