summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/pipes/contentAfterLastDot.pipe.ts
blob: 68fba92b77ac490ceb8aae1e18c89aa8f687218a (plain)
1
2
3
4
5
6
7
8
import { Pipe, PipeTransform } from '@angular/core';

@Pipe({ name: 'contentAfterLastDot' })
export class ContentAfterLastDotPipe implements PipeTransform {
    transform(value:string): string {
        return value.split('.').pop();
    }
}