Variable: projectile--repo-url-scp-regexp

projectile--repo-url-scp-regexp is a variable defined in projectile.el.

Value

"\\`\\(?:[^@/]*@\\)?\\([^/:]\\{2,\\}\\):\\(.+\\)\\'"

Documentation

Match git's scp-like [user@]host:path remote syntax.

Group 1 is the host, group 2 the path. The host has to be at least two characters long so that a Windows path like c:/src/repo isn't read as one; that's the same ambiguity, resolved the same way, as in git itself.

Source Code

;; Defined in ~/.emacs.d/elpa/projectile-20260820.1509/projectile.el
(defconst projectile--repo-url-scp-regexp
  "\\`\\(?:[^@/]*@\\)?\\([^/:]\\{2,\\}\\):\\(.+\\)\\'"
  "Match git's scp-like `[user@]host:path' remote syntax.
Group 1 is the host, group 2 the path.  The host has to be at least two
characters long so that a Windows path like `c:/src/repo' isn't read as
one; that's the same ambiguity, resolved the same way, as in git itself.")