mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-26 02:11:53 +00:00
@@ -4,9 +4,7 @@ import { Pipe, PipeTransform } from '@angular/core'
|
||||
name: 'mask',
|
||||
})
|
||||
export class MaskPipe implements PipeTransform {
|
||||
transform(val: string, max = 16): string {
|
||||
if (!val) return val
|
||||
const times = val.length <= max ? val.length : max
|
||||
return '●'.repeat(times)
|
||||
transform(val: string): string {
|
||||
return val && '●'.repeat(val.length)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user