From 7ef6ec505645ca84613dc734fca9a8c9709c0004 Mon Sep 17 00:00:00 2001 From: Arthur Deierlein Date: Fri, 18 Aug 2023 12:55:41 +0200 Subject: [PATCH] feat(ember): adjusted project validations --- ember/app/validations/project.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ember/app/validations/project.js b/ember/app/validations/project.js index d44c9552..f516dbb4 100644 --- a/ember/app/validations/project.js +++ b/ember/app/validations/project.js @@ -9,11 +9,16 @@ export default { repo: [ validatePresence(true), validateLength({ max: 200 }), - validateFormat({ type: 'url' }), - + validateFormat({ type: 'url', allowBlank: true }), validateFormat({ regex: /^(\s)*https?:\/\//, message: '{description} must start with either http:// or https://', + allowBlank: true, + }), + validateFormat({ + regex: /\.git$/, + message: '{description} must end with .git', + allowBlank: true, }), ], maintainers: [],