(path?: string, additionalContent?: string)
| 16 | * // Returns: "src/utils/helper.ts:42-45" + U+200E |
| 17 | */ |
| 18 | export function formatPathTooltip(path?: string, additionalContent?: string): string { |
| 19 | if (!path) return "" |
| 20 | |
| 21 | const formattedPath = removeLeadingNonAlphanumeric(path) + "\u200E" |
| 22 | |
| 23 | if (additionalContent) { |
| 24 | return formattedPath + " " + additionalContent |
| 25 | } |
| 26 | |
| 27 | return formattedPath |
| 28 | } |
no test coverage detected