Live video on the AT Protocol

Merge pull request #502 from streamplace/eli/login-chars

login: strip bsky.app copy-paste control characters

authored by Eli Mallon and committed by GitHub 1694ee29 32434293

+9 -1
+9 -1
js/app/components/login/login.tsx
··· 142 <Input 143 id="pdsUrl" 144 value={handle} 145 - onChangeText={(text) => setHandle(text.toLowerCase())} 146 backgroundColor="$color2" 147 onSubmitEditing={onEnterPress} 148 autoCapitalize="none"
··· 142 <Input 143 id="pdsUrl" 144 value={handle} 145 + onChangeText={(text) => 146 + setHandle( 147 + text 148 + .toLowerCase() 149 + // copying from bsky.app often includes some RTL/LTR characters 150 + .replace(/[\u202A\u202C\u200E\u200F\u2066-\u2069]/g, "") 151 + .trim(), 152 + ) 153 + } 154 backgroundColor="$color2" 155 onSubmitEditing={onEnterPress} 156 autoCapitalize="none"