Last `::` / `.` / `/`-separated segment of a qualified symbol.
(symbol: string)
| 103 | |
| 104 | /** Last `::` / `.` / `/`-separated segment of a qualified symbol. */ |
| 105 | function lastQualifierPart(symbol: string): string { |
| 106 | const parts = symbol.split(/::|[./]/).filter((p) => p.length > 0); |
| 107 | return parts[parts.length - 1] ?? symbol; |
| 108 | } |
| 109 | |
| 110 | /** |
| 111 | * Normalize Erlang-native symbol spellings in an explore query into the shapes |
no outgoing calls
no test coverage detected