]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/net/tramp.el (tramp-initial-file-name-regexp): Make it more precise.
authorMichael Albinus <michael.albinus@gmx.de>
Sat, 14 Dec 2019 13:20:00 +0000 (14:20 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Sat, 14 Dec 2019 13:20:00 +0000 (14:20 +0100)
lisp/net/tramp.el

index 8f5eb5096a2d15ff981b11e708c8209147ba6823..8988e57b8df13db8914132b6360a1243b7b5bc49 100644 (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.")