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

Update Phone Codes for Vodafone and Kyivstar Operators #14

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bondarenkod
Copy link

This pull request introduces updates to the Diia phone codes Regex patterns. Specifically, it includes the addition of new phone codes for the Vodafone and Kyivstar operators, ensuring our app remains up-to-date with the latest telecommunications infrastructure changes in Ukraine. The update includes modifications to existing Regex patterns where necessary and the addition of new codes to support the expanded service areas of these operators.

Changes made:

  • Added 077 for Kyivstar
  • Added 075 for Vodafone

The addition and modification of these phone codes are crucial for maintaining the app's relevance and usefulness to our users, especially those subscribing to Vodafone and Kyivstar services. It ensures the Diia app accurately recognizes and handles phone numbers from these operators, enhancing user experience and trust in our app's capabilities.

@@ -76,7 +76,7 @@ data class InputGroupMoleculeData(val items: List<TextInputMoleculeData>) : Inpu
@Composable
@Preview
fun InputGroupMoleculePreview() {
val PHONE_NUMBER_VALIDATION_PATTERN = "^38(039|050|063|066|067|068|073|091|092|093|094|095|096|097|098|099)\\d{7}\$"
val PHONE_NUMBER_VALIDATION_PATTERN = "^38(039|050|063|066|067|068|073|075|077|091|092|093|094|095|096|097|098|099)\\d{7}\$"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't it better to use only 1 source of truth instead of keeping this pattern in 6 places? PhoneNumberExt.PHONE_NUMBER_VALIDATION_PATTERN

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll review this later and find out the solution to handle this.
At first, I decided not to introduce such a significant changes to the code.
But not, I see that more work is needed and this is the better way to handle this.

@bondarenkod bondarenkod marked this pull request as draft March 14, 2024 09:27
@bondarenkod
Copy link
Author

Converted to draft, more work should be done

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