Explorar o código

[notebook] Fix regex for github owner pattern

Jenny Kim %!s(int64=10) %!d(string=hai) anos
pai
achega
6d81dc9ae3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      desktop/libs/notebook/src/notebook/github.py

+ 1 - 1
desktop/libs/notebook/src/notebook/github.py

@@ -40,7 +40,7 @@ class GithubClient(object):
   https://developer.github.com/v3/
   """
 
-  OWNER_RE = "(?P<owner>[a-z0-9](?:-?[a-z0-9]){0,38})"
+  OWNER_RE = "(?P<owner>[A-Za-z0-9](?:-?[A-Za-z0-9]){0,38})"
   REPO_RE = "(?P<repo>[\w\.@\:\-~]+)"
   BRANCH_RE = "(?P<branch>[\w\.@\:\-~]+)"
   FILEPATH_RE = "(?P<filepath>.+)"