Strongest password policy

This commit is contained in:
Jose Alberto Hernandez
2024-05-06 21:09:31 -06:00
committed by Jose Alberto Hernandez
parent 9b17a6c4f8
commit 8fdf8fb10c
35 changed files with 283 additions and 79 deletions
+21
View File
@@ -0,0 +1,21 @@
import { Pipe, PipeTransform } from '@angular/core';
@Pipe({
name: 'truncateText'
})
export class TruncateTextPipe implements PipeTransform {
transform(value: string, chars: number): string {
if (value.length <= 40) {
return value;
}
let truncatedText = value.substring(0, 30);
if (chars) {
truncatedText = value.substring(0, chars);
}
return truncatedText;
}
}