diff --git a/src/util/pipes/getFilename.pipe.ts b/src/util/pipes/getFilename.pipe.ts index 41469ab435b04c222cf95a353ac0680edcbf72e4..9f91f7652501251eda7e24f3e6ca2e59806f0aa4 100644 --- a/src/util/pipes/getFilename.pipe.ts +++ b/src/util/pipes/getFilename.pipe.ts @@ -5,7 +5,7 @@ import { Pipe, PipeTransform } from "@angular/core"; }) export class GetFilenamePipe implements PipeTransform { - private regex: RegExp = new RegExp('[\\/\\\\]([\\w\\.]*?)$') + private regex: RegExp = new RegExp('\/([^\/]+)$') public transform(fullname: string): string { return this.regex.test(fullname) ? this.regex.exec(fullname)[1]