* lisp/net/tramp.el (tramp-initial-file-name-regexp): Make it more precise.

This commit is contained in:
Michael Albinus 2019-12-14 14:20:00 +01:00
parent 7ebbec03ec
commit 3f36cab333

View file

@ -1019,7 +1019,7 @@ See also `tramp-file-name-regexp'.")
(car tramp-file-name-structure))
;;;###autoload
(defconst tramp-initial-file-name-regexp "\\`/.+:.*:"
(defconst tramp-initial-file-name-regexp "\\`/[^/:]+:[^/:]*:"
"Value for `tramp-file-name-regexp' for autoload.
It must match the initial `tramp-syntax' settings.")