input validations WIP

This commit is contained in:
Andrew Croce
2018-08-07 15:43:03 -04:00
parent 3f752280f2
commit b649d17eb8
6 changed files with 99 additions and 13 deletions

View File

@@ -0,0 +1,12 @@
export default {
anything: {
mask: [],
unmask: null,
match: /^(?!\s*$).+/
},
dollars: {
mask: ['$','/^\d+/','.','/^\d+/'],
unmask: ['$',','],
match: /^-?\d+\.?\d*$/
}
}