Lars Ingebrigtsen writes: > Tassilo Horn writes: > >> With the reasoning above, I'd suggest using >> >> "[/:]\\([.A-Za-z0-9_/-]+?\\)\\(?:\\.git/?\\)?\\'" > > Doesn't match "https://github.com/emacs-mirror/emacs/", which is what this > bug report was originally about, sort of. So I've now added a test for > this and altered the regexp to pass the test (on the trunk). Thanks. It works now for github URLs, but it should probably be used for gitlab and gitea URLs as well, patch attached.