mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-11 00:06:04 +00:00
feat: 插件安装改为直接下载源码
This commit is contained in:
7
tests/repo_regexp_test.py
Normal file
7
tests/repo_regexp_test.py
Normal file
@@ -0,0 +1,7 @@
|
||||
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)
|
||||
Reference in New Issue
Block a user