import { Pipe , PipeTransform } from '@angular/core' ; /**
 * Remove extra numbers after the full name (those numbers comes fromt the authentication service)
 */ @ Pipe ( { name : 'fullNamePipe' } ) export class FullNamePipe implements PipeTransform { transform ( fullName ) { const match = /^([^\d]+)/ . exec ( fullName ) ; return match && match [ 1 ] ? match [ 1 ] : fullName ; } }