Merge pull request #452 from dod-ccpo/fix-phone-ext
Fix input field to limit to 10 digits
This commit is contained in:
commit
f226f88ab3
@ -48,8 +48,8 @@ export default {
|
|||||||
validationError: 'Please enter a 10-digit phone number'
|
validationError: 'Please enter a 10-digit phone number'
|
||||||
},
|
},
|
||||||
phoneExt: {
|
phoneExt: {
|
||||||
mask: createNumberMask({ prefix: '', allowDecimal: false, allowLeadingZeroes: true, includeThousandsSeparator: false }),
|
mask: createNumberMask({ prefix: '', allowDecimal: false, integerLimit: 10, allowLeadingZeroes: true, includeThousandsSeparator: false }),
|
||||||
match: /^\w{0,10}$/,
|
match: /^\d{0,10}$/,
|
||||||
unmask: [],
|
unmask: [],
|
||||||
validationError: 'Optional: Please enter up to 10 digits'
|
validationError: 'Optional: Please enter up to 10 digits'
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user