- updated flow edit page;
- fixed issues on application form page;
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
Reference in New Issue
Block a user