Skip to content

Commit

Permalink
Fix bug with ssh prefixed urls rmuslimov#33
Browse files Browse the repository at this point in the history
  • Loading branch information
rmuslimov committed Jul 20, 2017
1 parent e8b7533 commit b5cff79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion browse-at-remote.el
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ When nil, uses the commit hash. The contents will never change."

(defun browse-at-remote--parse-git-prefixed (remote-url)
"Extract domain and slug from REMOTE-URL like git@... or git://..."
(cdr (s-match "git\\(?:@\\|://\\)\\([a-z.]+\\)\\(?::\\|/\\)\\([a-z0-9_.-]+/[a-z0-9_.-]+?\\)\\(?:\.git\\)?$" remote-url)))
(cdr (s-match "[git\\|ssh]\\(?:@\\|://\\)\\([a-z.]+\\)\\(?::\\|/\\)\\([a-z0-9_.-]+/[a-z0-9_.-]+?\\)\\(?:\.git\\)?$" remote-url)))

(defun browse-at-remote--parse-https-prefixed (remote-url)
"Extract domain and slug from REMOTE-URL like https://.... or http://...."
Expand Down

0 comments on commit b5cff79

Please sign in to comment.