Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复:错误的 URL 有效性验证正则表达式 #286

Merged
merged 1 commit into from
Apr 18, 2023

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