Remove mask from BA Code input since it had the same bug
This commit is contained in:
parent
63ca35e808
commit
e0367dd2bd
@ -66,11 +66,7 @@ export default {
|
|||||||
validationError: 'Please enter a valid Program Treasury Code. Note that it should be a four digit or six digit number, optionally prefixed by one or more zeros.'
|
validationError: 'Please enter a valid Program Treasury Code. Note that it should be a four digit or six digit number, optionally prefixed by one or more zeros.'
|
||||||
},
|
},
|
||||||
baCode: {
|
baCode: {
|
||||||
mask: val => {
|
mask: false,
|
||||||
if (val.length === 1) return [/\d/]
|
|
||||||
if (val.length === 2) return [/\d/, /\d/]
|
|
||||||
return [/\d/,/\d/,/[a-z,A-Z]/]
|
|
||||||
},
|
|
||||||
match: /[0-9]{2}\w?$/,
|
match: /[0-9]{2}\w?$/,
|
||||||
unmask: [],
|
unmask: [],
|
||||||
validationError: 'Please enter a valid BA Code. Note that it should be two digits, followed by an optional letter.'
|
validationError: 'Please enter a valid BA Code. Note that it should be two digits, followed by an optional letter.'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user