-
Notifications
You must be signed in to change notification settings - Fork 6
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
Regex problem when starting with 0 or +. #54
Comments
@aj3423 Or maybe apply the same stripping rule to the test string |
@bb1a2 The stripping of these characters does apply to the test string, I just verified it again and it works. |
Then why is the test call allowed? I am confused. |
@bb1a2 Can you show me a test case? I tested with rule |
I didn't try it myself. I went by the multiple issues raised. Isn't that what issue author is facing?
|
Oh, now I understand, you mean remove the |
Keep them for visuals (not to confuse the first-time user). But for all three (rule, test, actual call), apply the same treatment. |
That's a good idea, thanks. I think it's better to solve it in the first place when editing rules, if there is leading |
That can work. |
Thanks for all your answers and the solutions proposed. |
|
Hi everyone and thanks for your awesome app !
I'm trying to block all numbers starting with 09 48 which are authorized commercial numbers in France so I tried this in regex :
0948.*
as suggested in the readme.md but when I click on test and try a number such as 09 48 56 45 23, it isn't blocked.Then I did further investigation and it seems that every regex starting with 0 doesn't work while other numbers do (something like
01.*
or even0.*
doesn't work).Finally I thought that I may not need to block numbers beginning with 0948 but +33948 instead as +33 is the local phone indicator for metropolitan France so I put
\+339.*
in regex field and tried the "number" +33934567890 and it still isn't blocked.I think the app is the problem as I granted all the permission for it and it works for numbers like 1234567890 when I put
12.*
in the regex field and tools like a don't show things differently when it starts with0
,1
or even a+
.I'm a beginner in regex so I really hope I'm not the problem but I'll be glad to help you solve this if I can !
The text was updated successfully, but these errors were encountered: