Skip to content

Commit babd748

Browse files
committed
feat - increase number of lines and characters in comments of snippet
1 parent 1105ffe commit babd748

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

apps/codever-ui/src/app/my-snippets/create-snippet-form/create-snippet-form.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,10 @@ export class CreateSnippetFormComponent
194194
: '',
195195
textSizeValidator(10000, 1000),
196196
],
197-
comment: ['', textSizeValidator(10000, 300)],
197+
comment: ['', textSizeValidator(10000, 1000)],
198198
commentAfter: [
199199
this.getComment(this.comment, this.project, this.workspace, this.file),
200-
textSizeValidator(10000, 300),
200+
textSizeValidator(10000, 1000),
201201
],
202202
});
203203
}

apps/codever-ui/src/app/my-snippets/snippet-form-base/snippet-form.base.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,16 +145,16 @@ export class SnippetFormBaseComponent implements OnInit {
145145
createInitialCodeSnippet(): UntypedFormGroup {
146146
return this.formBuilder.group({
147147
code: ['', textSizeValidator(10000, 1000)],
148-
comment: ['', textSizeValidator(1000, 30)],
149-
commentAfter: ['', textSizeValidator(1000, 30)],
148+
comment: ['', textSizeValidator(10000, 1000)],
149+
commentAfter: ['', textSizeValidator(10000, 1000)],
150150
});
151151
}
152152

153153
createEmptyCodeSnippet(): UntypedFormGroup {
154154
return this.formBuilder.group({
155155
code: ['', textSizeValidator(10000, 1000)],
156-
comment: ['', textSizeValidator(1000, 30)],
157-
commentAfter: ['', textSizeValidator(1000, 30)],
156+
comment: ['', textSizeValidator(10000, 1000)],
157+
commentAfter: ['', textSizeValidator(10000, 1000)],
158158
});
159159
}
160160

0 commit comments

Comments
 (0)