Update TO number validator to account for dashes and variable character length

This commit is contained in:
leigh-mil
2020-01-23 16:41:09 -05:00
parent 84d0a32694
commit b20e2971d7
3 changed files with 115 additions and 3 deletions

View File

@@ -106,9 +106,9 @@ export default {
},
taskOrderNumber: {
mask: false,
match: /^.{13}$/,
unmask: [],
validationError: 'TO number must be 13 digits',
match: /(^[0-9a-zA-Z]{13,17}$)/,
unmask: ['-'],
validationError: 'TO number must be between 13 and 17 characters',
},
usPhone: {
mask: [