(value: unknown)
| 52 | } |
| 53 | |
| 54 | export function normalizeImportTag(value: unknown): string | null { |
| 55 | if (typeof value !== 'string') { |
| 56 | return null |
| 57 | } |
| 58 | |
| 59 | const normalized = value |
| 60 | .trim() |
| 61 | .replace(/^#+/, '') |
| 62 | .replace(/[\\/]+/g, '-') |
| 63 | .trim() |
| 64 | return normalized || null |
| 65 | } |
| 66 | |
| 67 | export function uniqueStrings(values: string[]): string[] { |
| 68 | const result: string[] = [] |
no outgoing calls
no test coverage detected