Aggiornamento APP RISO:
✅ Inviando i RIS, deve comparire prima il Circuito della Provincia, e poi quello Nazionale ✅ Risolto problema per vecchie registrazioni, la provincia compariva "undefined".
This commit is contained in:
@@ -4671,6 +4671,15 @@ export const tools = {
|
||||
return ''
|
||||
}
|
||||
|
||||
},
|
||||
getlinkEmail(myemail: string) {
|
||||
if (myemail) {
|
||||
|
||||
return `<a href="${myemail}" >${myemail}</a>`
|
||||
} else {
|
||||
return ''
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
getNationsByNationality(nat: string) {
|
||||
@@ -8407,6 +8416,15 @@ export const tools = {
|
||||
return inputString.replace('\\', '').replace(/"/g, '')
|
||||
},
|
||||
|
||||
removeTrailingBr(str: string) {
|
||||
// Usa una regex per cercare il tag <br> alla fine della stringa e rimuoverlo
|
||||
return str.replace(/<br>$/, '');
|
||||
},
|
||||
|
||||
removeescape_e_acapo(inputString: string): string {
|
||||
return this.removeTrailingBr(inputString.replace('\\', '').replace(/"/g, '').replace(/\r\n/g, '<br>').replace(/\r/g, '<br>'))
|
||||
},
|
||||
|
||||
isObjectEmpty(obj: any) {
|
||||
return Object.keys(obj).length === 0;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user