Skip to content

Commit

Permalink
correção link malformed
Browse files Browse the repository at this point in the history
  • Loading branch information
mundotv789123 committed Mar 20, 2024
1 parent 077a58e commit 756b394
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/services/FilesService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,11 @@ export class FilesService {
private clearPath(path: string | null): string {
if (path == null)
return "";
return decodeURI(
path
.replace(/\/\/+/, '/')
.replace(/^\/+/, '')
.replace(/\/+$/, '')
.trim()
);
return path
.replace(/\/\/+/, '/')
.replace(/^\/+/, '')
.replace(/\/+$/, '')
.trim();
}

private getErrorMessage(code: number): string {
Expand Down

0 comments on commit 756b394

Please sign in to comment.