瀏覽代碼

ssh:// Location URL - remove not needed #

nobody could make sense of it, so guess it is a mistake.
Thomas Waldmann 8 年之前
父節點
當前提交
546c77f73d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      borg/helpers.py

+ 1 - 1
borg/helpers.py

@@ -788,7 +788,7 @@ class Location:
     ssh_re = re.compile(r"""
     ssh_re = re.compile(r"""
         (?P<proto>ssh)://                                   # ssh://
         (?P<proto>ssh)://                                   # ssh://
         (?:(?P<user>[^@]+)@)?                               # user@  (optional)
         (?:(?P<user>[^@]+)@)?                               # user@  (optional)
-        (?P<host>[^:/#]+)(?::(?P<port>\d+))?                # host or host:port
+        (?P<host>[^:/]+)(?::(?P<port>\d+))?                 # host or host:port
         """ + path_re + optional_archive_re, re.VERBOSE)    # path or path::archive
         """ + path_re + optional_archive_re, re.VERBOSE)    # path or path::archive
 
 
     file_re = re.compile(r"""
     file_re = re.compile(r"""