-
-
Save Uvacoder/fed70a4c9b8a7c8129cf827f12bf5c2a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const pattern = /^(?:\S+:\/\/)?(?:\S+@)?(?'host'\S+?)[:\/](?'owner'\S+?)[\/](?'repository'\S+)$/gm | |
| /* | |
| https://github.com/rawkode/dotfiles | |
| https://github.com/rawkode/dotfiles/2 | |
| git@github.com:rawkode/dotfiles | |
| git@github.com:rawkode/dotfiles/micro/1/2 | |
| ssh://git@github.com/rawkode/dotfiles | |
| ssh://git@github.com/rawkode/dotfiles/micro/1 | |
| */ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment