summaryrefslogtreecommitdiff
path: root/lisp/net/tramp.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/net/tramp.el')
-rw-r--r--lisp/net/tramp.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el
index b1f001a95d9..aadf09e48fe 100644
--- a/lisp/net/tramp.el
+++ b/lisp/net/tramp.el
@@ -879,7 +879,7 @@ initial value is overwritten by the car of `tramp-file-name-structure'.")
;;;###autoload
(defconst tramp-completion-file-name-regexp-unified
(concat
- "\\`"
+ "\\`/\\("
;; Optional multi hop.
"\\([^/|:]+:[^/|:]*|\\)*"
;; Last hop.
@@ -890,7 +890,7 @@ initial value is overwritten by the car of `tramp-file-name-structure'.")
"[^/|:]+")
;; Method separator, user name and host name.
"\\(:[^/|:]*\\)?"
- "\\'")
+ "\\)?\\'")
"Value for `tramp-completion-file-name-regexp' for unified remoting.
See `tramp-file-name-structure' for more explanations.