(value: string | null | undefined)
| 86 | transform(value: null | undefined): null; |
| 87 | transform(value: string | null | undefined): string | null; |
| 88 | transform(value: string | null | undefined): string | null { |
| 89 | if (value == null) return null; |
| 90 | assertPipeArgument(TitleCasePipe, value); |
| 91 | |
| 92 | return value.replace( |
| 93 | unicodeWordMatch, |
| 94 | (txt) => txt[0].toUpperCase() + txt.slice(1).toLowerCase(), |
| 95 | ); |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | /** |
nothing calls this directly
no test coverage detected