Commit 95aab85a authored by 温海元's avatar 温海元

modify the rule for create

parent 7cbc5106
......@@ -55,8 +55,7 @@ const save = async function (ctx) {
}
// 支持中文域名
const match = data.git_path.match(/(?<=@)([A-Z0-9a-z\u4e00-\u9fa5-\.]+):([\w-\.]+)\/(.*).git$/)
//if (!match || match.length !== 4) {
// if (match.length !== 4) {
// if (!match || match.length !== 4) {
// ctx.body = ctx.fail(ctx.Code.ERROR_GITPATH)
// 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