fix: docker 镜像加速地址支持添加带端口 (#5638)

Co-authored-by: zhoujunhong <1298308460@qq.com>
This commit is contained in:
John Bro 2024-07-02 17:25:19 +08:00 committed by GitHub
parent 433055b851
commit d71514885d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -74,7 +74,7 @@ const rules = reactive({
function checkMirrors(rule: any, value: any, callback: any) {
if (form.mirrors !== '') {
const reg = /^https?:\/\/[a-zA-Z0-9./-]+$/;
const reg = /^https?:\/\/[a-zA-Z0-9.-]+(:[0-9]{1,5})?(\/[a-zA-Z0-9./-]*)?$/;
let mirrors = form.mirrors.split('\n');
for (const item of mirrors) {
if (item === '') {