(id: string, providerId?: string)
| 475 | } |
| 476 | |
| 477 | function labID(id: string, providerId?: string) { |
| 478 | const [first] = id.split("/"); |
| 479 | if (first !== undefined && first.length > 0) return normalizeLab(first); |
| 480 | if (providerId !== undefined && providerId.length > 0) return normalizeLab(providerId); |
| 481 | } |
| 482 | |
| 483 | function normalizeLab(value: string) { |
| 484 | const normalized = value.toLowerCase(); |
no test coverage detected