atproto explorer

trim leading and trailing whitespaces and at symbol

+5 -1
+5 -1
src/components/search.tsx
··· 12 12 13 13 const processInput = async (input: string) => { 14 14 (document.getElementById("uriForm") as HTMLFormElement).reset(); 15 - input = input.trim(); 15 + input = input 16 + .trim() 17 + .replace(/\u202c$/, "") 18 + .replace(/^\u202a/, "") 19 + .replace(/^@/, ""); 16 20 if (!input.length) return; 17 21 if ( 18 22 !input.startsWith("https://bsky.app/") &&