mirror of
https://github.com/MatrixSeven/file-transfer-go.git
synced 2026-05-17 17:47:29 +08:00
feat:webrtc支持检测|房间检测|UI状态优化
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user