mirror of
https://github.com/morluto/rea.git
synced 2026-11-11 01:13:39 +00:00
fix(setup): spell IDA and JADX in interactive completion (#9149)
This commit is contained in:
2 files changed
+40
-1
No files matched your search
@@ -275,8 +275,15 @@ const readyAgentClients = (
|
||||
const readyProviders = (result: SetupResult): readonly string[] =>
|
||||
result.doctor.availableProviders.map(displayProviderId);
|
||||
|
||||
/** Product spellings that title case would distort. Lookup ids stay lowercase. */
|
||||
const PROVIDER_DISPLAY_NAMES: Readonly<Record<string, string>> = {
|
||||
ida: "IDA",
|
||||
jadx: "JADX",
|
||||
};
|
||||
|
||||
const displayProviderId = (id: string): string =>
|
||||
id.length === 0 ? id : `${id[0]?.toUpperCase() ?? ""}${id.slice(1)}`;
|
||||
PROVIDER_DISPLAY_NAMES[id] ??
|
||||
(id.length === 0 ? id : `${id[0]?.toUpperCase() ?? ""}${id.slice(1)}`);
|
||||
|
||||
const humanList = (values: readonly string[]): string => {
|
||||
if (values.length < 2) return values[0] ?? "";
|
||||
|
||||
Reference in new issue
Block a user