[READ-ONLY] a fast, modern browser for the npm registry
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: remove space and `@` from user input atproto handle (#1137)

authored by

TAKAHASHI Shuuji and committed by
GitHub
92f58d86 4aceb9cb

+13
+13
app/components/Header/AuthModal.client.vue
··· 25 25 await authRedirect(handleInput.value) 26 26 } 27 27 } 28 + 29 + watch(handleInput, newHandleInput => { 30 + if (!newHandleInput) return 31 + 32 + const normalized = newHandleInput 33 + .trim() 34 + .toLowerCase() 35 + .replace(/[^a-z0-9.-]/g, '') 36 + 37 + if (normalized !== newHandleInput) { 38 + handleInput.value = normalized 39 + } 40 + }) 28 41 </script> 29 42 30 43 <template>