Skip to content

Conversation

@VincentSit
Copy link
Contributor

我在导入飞书机器人的时候遇到了提示 Webhook URL 无效的问题,检查了代码发现用于验证 URL 的正则应该是错误的,因此有了这个 PR。

请见当前正则的测试以及新正则的测试

注意这个 PR 去掉了 ftpfile 两个协议,如果这个是必须的话,可能要更新一下正则。

@pppscn pppscn merged commit 0eab5dc into pppscn:main Apr 18, 2023
@pppscn
Copy link
Owner

pppscn commented Apr 18, 2023

感谢PR

@pppscn
Copy link
Owner

pppscn commented Feb 20, 2024

目前发现不能兼容 ipv6 的url

例如:http://[2409:8134:50:e2bf:7d96:6c9:280:1234]:5000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants