feat:webrtc支持检测|房间检测|UI状态优化

This commit is contained in:
MatrixSeven
2025-08-26 18:52:29 +08:00
parent 301434fd4c
commit 63e6e956e4
18 changed files with 1184 additions and 167 deletions

View File

@@ -110,7 +110,7 @@ export function WebRTCFileReceive({
}, [pickupCode, onJoinRoom]);
const handleInputChange = useCallback((e: React.ChangeEvent<HTMLInputElement>) => {
const value = e.target.value.replace(/[^A-Z0-9]/g, '').toUpperCase();
const value = e.target.value.replace(/[^123456789ABCDEFGHIJKLMNPQRSTUVWXYZabcdefghijklmnpqrstuvwxyz]/g, '');
if (value.length <= 6) {
setPickupCode(value);
}