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 142 <Input 143 143 id="pdsUrl" 144 144 value={handle} 145 - onChangeText={(text) => setHandle(text.toLowerCase())} 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 + } 146 154 backgroundColor="$color2" 147 155 onSubmitEditing={onEnterPress} 148 156 autoCapitalize="none"