Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

edit single box #150

Open
vungo99 opened this issue Oct 25, 2023 · 13 comments
Open

edit single box #150

vungo99 opened this issue Oct 25, 2023 · 13 comments

Comments

@vungo99
Copy link

vungo99 commented Oct 25, 2023

is available when pinput allows user to edit a single box?

@Tkko
Copy link
Owner

Tkko commented Oct 25, 2023

Hi @vungo99, it's not available yet.

@vungo99
Copy link
Author

vungo99 commented Oct 25, 2023

tks for your reply. one more question about the edge case, when 2 or more SMS OTPs are sent at the same time, can pinput detect correctly SMS OTP from the right app's vendor?
thank u so muchh

@Tkko
Copy link
Owner

Tkko commented Oct 25, 2023

@vungo99 If you enable smsRetrieverApi it will only read SMS that will have the application signature in the content. Check out the autofill section in the readme for more details.

@vungo99
Copy link
Author

vungo99 commented Oct 31, 2023

Can I use smsCodeMatcher to detect OTP when message has many number like : "your account 123456 will receive OTP 654321 and has valid in 300s " => detect otp : 654321

@Tkko
Copy link
Owner

Tkko commented Oct 31, 2023

@vungo99 Yes, you can set a regex that will match the OTP instead of account id. Do both OTP and account Id have the same length?

@vungo99
Copy link
Author

vungo99 commented Oct 31, 2023

Yes, they have the same length like :
" your id 022C123456 will receive OTP 666666 in 300s".
I write regex OTP\s*(\d{6}) but not work.
Can you suggest regex for me ?? I try too much but it not work

@Tkko
Copy link
Owner

Tkko commented Oct 31, 2023

@vungo99 Try this regex r'\b(\d{6})\b'

@vungo99
Copy link
Author

vungo99 commented Oct 31, 2023

smsCodeMatcher: '\b(\d{6})\b', right ?

@Tkko
Copy link
Owner

Tkko commented Oct 31, 2023

smsCodeMatcher: r'\b(\d{6})\b'

@vungo99
Copy link
Author

vungo99 commented Oct 31, 2023

oh tk u so much !! It work like a charm :D

@vungo99
Copy link
Author

vungo99 commented Nov 9, 2023

hi @Tkko , I have the issue :
msg 1 : "TBC: your id 022C123456 will receive OTP 666666 in 300s "
msg 2 : "your id 022C123456 will receive OTP 666666 in 300s"
how can use regex to accept otp from msg1, not msg2

@Tkko
Copy link
Owner

Tkko commented Nov 9, 2023

Hey @vungo99, I usually ask regex questions to ChatGPT 🙈

@vungo99
Copy link
Author

vungo99 commented Nov 9, 2023

I use it too, but can't apply 🙈🙈🙈

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants