commit | 95e001b49a9841dbe6172fb9b22e64be7b4193d3 | [log] [tgz] |
---|---|---|
author | Max Rasskazov <mrasskazov@mirantis.com> | Sat May 30 23:53:22 2015 +0300 |
committer | Max Rasskazov <mrasskazov@mirantis.com> | Thu Jun 18 13:11:58 2015 +0300 |
tree | 8ba4ba4e8e044acf1284ce0f78723cd60573c6c3 | |
parent | a8db7a9181e6b35f9c3321815c78b9d1090cd0bc [diff] [blame] |
Fixed regexps for ssh and path Change-Id: I836c08d091d453fd9974a638ab5522eb72ef4eb9
diff --git a/rsync_url.py b/rsync_url.py index 2134904..38836ac 100644 --- a/rsync_url.py +++ b/rsync_url.py
@@ -21,7 +21,7 @@ r'(?P<user>[-\w]+@)?' r'(?P<host>[-\.\w]+){1}' r':' - r'(?P<path>[\w/-]*){1}' + r'(?P<path>(~{0,1}[\w/-]*)){1}' r'$' ), # rsync: [USER@]HOST::SRC @@ -45,7 +45,7 @@ # local/path/to/directory 'path': re.compile( r'^' - r'(?P<path>[\w/-]+){1}' + r'(?P<path>(~{0,1}[\w/-]+)){1}' r'$' ), }