Skip to content

Commit 38577a1

Browse files
committed
Use slightly more strict \S for gh user regex
[#14]
1 parent 99ea0a5 commit 38577a1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/github/auth/keys_file.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ def delete!(keys)
3232
end
3333

3434
def github_users
35-
# http://rubular.com/r/2LjIGaKObz
36-
regex = %r{github\.com/(.+)}
35+
# http://rubular.com/r/zXCkewmm0i
36+
regex = %r{github\.com/(\S+)}
3737
keys_file_content.scan(regex).flatten.uniq.sort
3838
end
3939

0 commit comments

Comments
 (0)