Skip to content

Commit

Permalink
feat(ember): adjusted project validations
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed Aug 22, 2023
1 parent 1951846 commit 7ef6ec5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions ember/app/validations/project.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [],
Expand Down

0 comments on commit 7ef6ec5

Please sign in to comment.