Skip to content

Commit 7e01601

Browse files
committed
#3209 SABO number limited to exactly 5 digits
1 parent 956c4e3 commit 7e01601

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/frontend/src/pages/FinancePage/ReimbursementRequestDetailPage/AddSABONumberModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ const schema = yup.object({
1212
.number()
1313
.typeError('The SABO number should be a valid number')
1414
.required('The SABO number is required')
15-
.test('exact-5-digits', 'The SABO number must be at least 5 digits', function () {
15+
.test('exact-5-digits', 'The SABO number must be exactly 5 digits', function () {
1616
const original = this.originalValue?.toString().trim();
17-
return /^\d{5,}$/.test(original || '');
17+
return /^\d{5}$/.test(original || '');
1818
})
1919
});
2020

0 commit comments

Comments
 (0)