mirror of
https://github.com/langbot-app/LangBot.git
synced 2025-11-26 03:44:58 +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) |