Update DOD ID validator to allow leading zeros
This commit is contained in:
parent
976dfe3f1a
commit
8cda3109bb
@ -60,7 +60,7 @@ export default {
|
|||||||
validationError: 'Optional: Please enter up to 10 digits'
|
validationError: 'Optional: Please enter up to 10 digits'
|
||||||
},
|
},
|
||||||
dodId: {
|
dodId: {
|
||||||
mask: createNumberMask({ prefix: '', allowDecimal: false, includeThousandsSeparator: false }),
|
mask: createNumberMask({ prefix: '', allowDecimal: false, allowLeadingZeroes: true, includeThousandsSeparator: false }),
|
||||||
match: /^\d{10}$/,
|
match: /^\d{10}$/,
|
||||||
unmask: [],
|
unmask: [],
|
||||||
validationError: 'Please enter a 10-digit DoD ID number'
|
validationError: 'Please enter a 10-digit DoD ID number'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user