sora-xor / sora-card-ios

Designing a Better World Through Decentralized Technologies
Apache License 2.0
1 stars 0 forks source link

[Bug]: Restrict input characters to phone mask and OTP mask #59

Closed pg-vlad closed 1 year ago

pg-vlad commented 1 year ago

Preconditions

No response

Steps to reproduce

Steps to reproduce Paste any characters in phone/OTP mask

Actual behavior

Character are available for input

characters_phonemask

characters_otp

Expected behavior

Only digits are available for input. characters are not available for input.

Environment

{"label"=>"Stage"}

OS version

iOS

Additional context

No response

2bogd commented 1 year ago

will add local check with regex: [0-9]{4,6}$ and error message: Wrong format!