浏览代码

[notebook] Fix regex for github owner pattern

Jenny Kim 10 年之前
父节点
当前提交
6d81dc9
共有 1 个文件被更改,包括 1 次插入1 次删除
  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/
   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\.@\:\-~]+)"
   REPO_RE = "(?P<repo>[\w\.@\:\-~]+)"
   BRANCH_RE = "(?P<branch>[\w\.@\:\-~]+)"
   BRANCH_RE = "(?P<branch>[\w\.@\:\-~]+)"
   FILEPATH_RE = "(?P<filepath>.+)"
   FILEPATH_RE = "(?P<filepath>.+)"