sshaw / git-link

Emacs package to get the GitHub/Bitbucket/GitLab/... URL for a buffer location
394 stars 73 forks source link

Relax the git-link-remote-regex to allow more valid links #41

Closed kaushalmodi closed 7 years ago

kaushalmodi commented 7 years ago

This changes a minor portion of git-link-remote-regex as follows:

     Before: "\\([^/]+/[^/]+?\\)"
     After:  "\\([^/]+\\(?:/[^/]+?\\)*\\)".

Earlier this regexp did not match "http://orgmode@orgmode.org/org-mode.git".

Now it does; without breaking the match for links containing 2 forward-slashes as usual too -- "https://git.savannah.gnu.org/r/emacs.git"

sshaw commented 7 years ago

Thanks!