-
Notifications
You must be signed in to change notification settings - Fork 1
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
PER-9943-cant-delete-sms-mfa #503
base: main
Are you sure you want to change the base?
Conversation
Handle 11 character phone numbers(with country code) in SMS MFA setup
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #503 +/- ##
==========================================
+ Coverage 43.10% 43.15% +0.04%
==========================================
Files 362 362
Lines 11042 11056 +14
Branches 1799 1805 +6
==========================================
+ Hits 4760 4771 +11
- Misses 6121 6122 +1
- Partials 161 163 +2 ☔ View full report in Codecov by Sentry. |
const match = numbers.match(/^(\d{1,3})/); | ||
if (match) { | ||
countryCode = `+${match[1]}`; | ||
numbers = numbers.substring(match[1].length); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add coverage for these paths of code? The other ones have examples provided in the tests and it would be nice to see that spelled out for this branch as well.
@meisekimiu you are right, test added :) |
Handle 11 character phone numbers(with country code) in SMS MFA setup
Steps to test: