Last `::` / `.` / `/`-separated segment of a qualified symbol.
(symbol: string)
| 92 | |
| 93 | /** Last `::` / `.` / `/`-separated segment of a qualified symbol. */ |
| 94 | function lastQualifierPart(symbol: string): string { |
| 95 | const parts = symbol.split(/::|[./]/).filter((p) => p.length > 0); |
| 96 | return parts[parts.length - 1] ?? symbol; |
| 97 | } |
| 98 | |
| 99 | /** |
| 100 | * Normalize Erlang-native symbol spellings in an explore query into the shapes |
no outgoing calls
no test coverage detected