Skip to content

Commit

Permalink
Merge pull request #258 from aneillans/itaku-description-limit
Browse files Browse the repository at this point in the history
Itaku: Add a 5000 char description limit on validation
  • Loading branch information
mvdicarlo authored Oct 13, 2023
2 parents 7db331c + 5a3d99d commit eac55e3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion electron-app/src/server/websites/itaku/itaku.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,12 @@ export class Itaku extends Website {
): ValidationParts {
const problems: string[] = [];
const warnings: string[] = [];
const isAutoscaling: boolean = submissionPart.data.autoScale;

if (defaultPart.data.description.value.length > 5000) {
problems.push(
`Max description length allowed is 5000 characters.`,
);
}

if (FormContent.getTags(defaultPart.data.tags, submissionPart.data.tags).length < 5) {
problems.push('Requires at least 5 tags.');
Expand Down

0 comments on commit eac55e3

Please sign in to comment.