- updated flow edit page;

- fixed issues on application form page;
This commit is contained in:
Vitalii Kiiko
2024-09-24 17:25:41 +02:00
parent 2341b9ff62
commit b008fcd37a
11 changed files with 103 additions and 75 deletions

View File

@@ -3,7 +3,8 @@ import { match, isEmpty } from 'ramda';
import CodiceFiscale from 'codice-fiscale-js';
export const isPIVA = (v) => {
return false;
const regexp = new RegExp(/^[0-9]{11}$/);
return !isEmpty(match(regexp, String(v)));
}
// example: DSDDSD99P23B352G
@@ -14,8 +15,8 @@ export const isCodiceFiscale = (v) => {
}
export const isCAP = (v) => {
const regexp = new RegExp(/^[0-9]{5}$/)
return !isEmpty(match(regexp, v));
const regexp = new RegExp(/^[0-9]{5}$/);
return !isEmpty(match(regexp, String(v)));
}
export const isIBAN = (v) => {
@@ -54,5 +55,6 @@ export const isUrl = (v) => {
}
export const isMarcaDaBollo = (v) => {
return true;
const regexp = new RegExp(/^[0-9]{14}$/);
return !isEmpty(match(regexp, String(v)));
}