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

Improve handling phone context in RFC3966 format. #3792

Open
wants to merge 4 commits into
base: refactor-rfc-normalize-java
Choose a base branch
from

Conversation

silvio2402
Copy link
Collaborator

Previously, the phone number from the tel-URI was prefixed with the phone context. This meant that for example tel:0791234567;phone-context=+41 would produce +410791234567 which is not a valid phone number (it has national trunk and country code).

These changes try to extract the country code from the phone context and use the corresponding metadata to strip the national prefix from the phone number before prefixing it with the extracted country code.

If the phone context goes beyond just the country code, it still prefixes the phone number part with the phone context.

Context: b/370922064

@silvio2402 silvio2402 requested a review from tvislavski January 22, 2025 16:47
@silvio2402 silvio2402 requested a review from a team as a code owner January 22, 2025 16:47
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

Successfully merging this pull request may close these issues.

2 participants