(value: string)
| 28 | * @returns The formatted string |
| 29 | */ |
| 30 | export const formatKeyword = (value: string): string => { |
| 31 | if (!value) { |
| 32 | return ''; |
| 33 | } |
| 34 | return value |
| 35 | .split('-') |
| 36 | .map((word) => capitalize(word)) |
| 37 | .join(' '); |
| 38 | }; |
| 39 | |
| 40 | export const anchorDefaultRel = 'noopener noreferrer'; |
| 41 |
no test coverage detected