atproto explorer pdsls.dev
atproto tool

show suggestion with full prefix

juli.ee 911b5529 8cbe8b5f

verified
Changed files
+2 -2
src
components
+2 -2
src/components/search.tsx
···
const currentInput = input();
if (!currentInput) return SEARCH_PREFIXES;
-
const { prefix } = parsePrefix(currentInput);
-
if (prefix) return [];
+
const { prefix, query } = parsePrefix(currentInput);
+
if (prefix && query.length > 0) return [];
return SEARCH_PREFIXES.filter((p) => p.prefix.startsWith(currentInput.toLowerCase()));
};