mirror of
https://github.com/RockChinQ/QChatGPT.git
synced 2024-11-16 11:42:44 +08:00
7 lines
183 B
Python
7 lines
183 B
Python
import re
|
|
|
|
repo_url = "git@github.com:RockChinQ/WebwlkrPlugin.git"
|
|
|
|
repo = re.findall(r'(?:https?://github\.com/|git@github\.com:)([^/]+/[^/]+?)(?:\.git|/|$)', repo_url)
|
|
|
|
print(repo) |