We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 956c4e3 commit 7e01601Copy full SHA for 7e01601
1 file changed
src/frontend/src/pages/FinancePage/ReimbursementRequestDetailPage/AddSABONumberModal.tsx
@@ -12,9 +12,9 @@ const schema = yup.object({
12
.number()
13
.typeError('The SABO number should be a valid number')
14
.required('The SABO number is required')
15
- .test('exact-5-digits', 'The SABO number must be at least 5 digits', function () {
+ .test('exact-5-digits', 'The SABO number must be exactly 5 digits', function () {
16
const original = this.originalValue?.toString().trim();
17
- return /^\d{5,}$/.test(original || '');
+ return /^\d{5}$/.test(original || '');
18
})
19
});
20
0 commit comments