review app
This commit is contained in:
parent
4a35a3211f
commit
f525a76f6e
38 changed files with 268 additions and 229 deletions
|
@ -16,16 +16,4 @@ export const StringExtensions = () => {
|
|||
return this[this.length - 1];
|
||||
};
|
||||
}
|
||||
if ("".fixToPath === undefined) {
|
||||
// eslint-disable-next-line no-extend-native
|
||||
String.prototype.fixToPath = function () {
|
||||
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
||||
let result = this;
|
||||
const symbolPath = "/";
|
||||
if (this.lastElement != symbolPath) {
|
||||
result = result.slice(0, -1);
|
||||
}
|
||||
return result;
|
||||
};
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue