We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
@
1 parent 4aceb9c commit 92f58d8Copy full SHA for 92f58d8
1 file changed
app/components/Header/AuthModal.client.vue
@@ -25,6 +25,19 @@ async function handleLogin() {
25
await authRedirect(handleInput.value)
26
}
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
+})
41
</script>
42
43
<template>
0 commit comments