Commit 910f0a46 authored by 温海元's avatar 温海元

modify the rule for create

parent f3e4c3fd
...@@ -55,7 +55,8 @@ const save = async function (ctx) { ...@@ -55,7 +55,8 @@ const save = async function (ctx) {
} }
// 支持中文域名 // 支持中文域名
const match = data.git_path.match(/(?<=@)([A-Z0-9a-z\u4e00-\u9fa5-\.]+):([\w-\.]+)\/(.*).git$/) const match = data.git_path.match(/(?<=@)([A-Z0-9a-z\u4e00-\u9fa5-\.]+):([\w-\.]+)\/(.*).git$/)
if (!match || match.length !== 4) { //if (!match || match.length !== 4) {
if (match.length !== 4) {
ctx.body = ctx.fail(ctx.Code.ERROR_GITPATH) ctx.body = ctx.fail(ctx.Code.ERROR_GITPATH)
return return
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment