mirror of
https://gitee.com/fit2cloud-feizhiyun/1Panel.git
synced 2024-12-05 21:38:26 +08:00
fix: docker 镜像加速地址支持添加带端口 (#5638)
Co-authored-by: zhoujunhong <1298308460@qq.com>
This commit is contained in:
parent
433055b851
commit
d71514885d
@ -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 === '') {
|
||||
|
Loading…
Reference in New Issue
Block a user