Il link di un gruppo non può contenere la barra... o altri caratteri speciali

This commit is contained in:
Surya Paolo
2022-11-29 17:35:41 +01:00
parent d6f537473e
commit b8f2320c0a
7 changed files with 46 additions and 16 deletions

View File

@@ -4423,11 +4423,22 @@ export const tools = {
return mystr.replace(/\s+/g, '')
},
removespaces_slash(mystr: string) {
removespecial_chars(mystr: string) {
mystr = mystr.replace(/\s+/g, '')
mystr = mystr.replace(/\//g, '')
mystr = mystr.replace(/:/g, '')
mystr = mystr.replace(/./g, '')
mystr = mystr.replace(/,/g, '')
mystr = mystr.replace(/'/g, '')
mystr = mystr.replace(/&/g, '')
mystr = mystr.replace(/@/g, '')
mystr = mystr.replace(/\?/g, '')
mystr = mystr.replace(/#/g, '')
return mystr
},
removespaces_slash(mystr: string) {
mystr = mystr.replace(/\s+/g, '')
mystr = mystr.replace(/\//g, '')
mystr = mystr.replace(/,/g, '')
mystr = mystr.replace(/'/g, '')
return mystr
@@ -7220,7 +7231,7 @@ export const tools = {
} catch (e) {
console.error('err getDirectoryGall', e)
}
console.log('getDirectoryGall', ris)
// console.log('getDirectoryGall', ris)
return ris
},