- aggiunta campi Gas data + fix
This commit is contained in:
@@ -1720,7 +1720,14 @@ module.exports = {
|
|||||||
|
|
||||||
removeLastSlashFromPath: function (myString) {
|
removeLastSlashFromPath: function (myString) {
|
||||||
let regex = /\/$/;
|
let regex = /\/$/;
|
||||||
let result = myString.replace(regex, "");
|
let result = myString;
|
||||||
|
|
||||||
|
try {
|
||||||
|
if (myString)
|
||||||
|
result = myString.replace(regex, "");
|
||||||
|
} catch (e) {
|
||||||
|
return myString;
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user