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

detect wrong sms code #26

Open
Nidhi1396-NP opened this issue Sep 18, 2024 · 1 comment
Open

detect wrong sms code #26

Nidhi1396-NP opened this issue Sep 18, 2024 · 1 comment
Assignees

Comments

@Nidhi1396-NP
Copy link

Describe the bug
Detect Wrong SMS code from sms with templete like this.

OTP for XXXXXX (XX1245) is 811739 (valid for 10 mins).

in SMS code we required 811739 as code. but i got 1245 as code.

@ImanGhasemiArani
Copy link

hello,
you should write your own pattern for code detection in matcher field in getSmsCode. ('\\d{4,8}' is the default pattern that detect wrong).

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

3 participants