Update mask and error message
This commit is contained in:
parent
642934d701
commit
c753181541
@ -48,10 +48,10 @@ export default {
|
|||||||
validationError: 'Please enter a 10-digit phone number'
|
validationError: 'Please enter a 10-digit phone number'
|
||||||
},
|
},
|
||||||
phoneExt: {
|
phoneExt: {
|
||||||
mask: [/\w/, /\w/, /\w/, /\w/, /\w/, /\w/, /\w/, /\w/, /\w/, /\w/],
|
mask: createNumberMask({ prefix: '', allowDecimal: false, allowLeadingZeroes: true, includeThousandsSeparator: false }),
|
||||||
match: /^\w*$/,
|
match: /^\w{0,10}$/,
|
||||||
unmask: [],
|
unmask: [],
|
||||||
validationError: 'Optional: Please enter up to 10 characters'
|
validationError: 'Optional: Please enter up to 10 digits'
|
||||||
},
|
},
|
||||||
dodId: {
|
dodId: {
|
||||||
mask: createNumberMask({ prefix: '', allowDecimal: false, includeThousandsSeparator: false }),
|
mask: createNumberMask({ prefix: '', allowDecimal: false, includeThousandsSeparator: false }),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user