mirror of
https://github.com/Terncode/pixel.horse.git
synced 2026-09-24 21:55:52 +02:00
tslint changes
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { Pipe, PipeTransform } from '@angular/core';
|
||||
|
||||
@Pipe({
|
||||
name: 'siteName',
|
||||
name: 'siteName',
|
||||
})
|
||||
export class SiteNamePipe implements PipeTransform {
|
||||
transform(value: string | undefined) {
|
||||
const match = String(value || '').match(/(\w+)\.com/);
|
||||
return match && match[1];
|
||||
}
|
||||
transform(value: string | undefined) {
|
||||
const match = String(value || '').match(/(\w+)\.com/);
|
||||
return match && match[1];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user