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

导入已有集群的情况下,支持IP、域名和K8s服务名 #164

Open
anjoy8 opened this issue Sep 7, 2021 · 1 comment
Open

导入已有集群的情况下,支持IP、域名和K8s服务名 #164

anjoy8 opened this issue Sep 7, 2021 · 1 comment

Comments

@anjoy8
Copy link

anjoy8 commented Sep 7, 2021

const reg = /^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\:([0-9]|[1-9]\d|[1-9]\d{2}|[1-9]\d{3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5])$/

在这里,可以尝试修改正则验证逻辑,类似这种:
\S+:\d+

不知道作者是否有这样的考虑。

@jeffaryhe
Copy link

希望作者改一下前段源码bug,输入IP地址也不现实哦。

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

No branches or pull requests

2 participants