Automattic / Automattic/php-phone

Issue with Lithuania phone codes

Open
#12 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
PHP
Stars
10
Forks
9
PR merge metrics
No merged PRs in 30d

Description

This code is missing in the normalize method, similar for RUS:

```
// comment originated from node-phone:
// if input 860010020, LT, remove the 8
if ( "LTU" == $alpha3 && 9 == strlen( $validPhoneNumber ) && preg_match( "/^86/", $validPhoneNumber ) ) {
$validPhoneNumber = preg_replace("/^8+/", "", $validPhoneNumber );
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Locate the PHP normalize method and compare its country-specific handling with the existing RUS case and the supplied LTU example. Verify the behavior for the Lithuanian input 860010020 and check that the analogous requested normalization is covered before considering the issue done.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
internationalization
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.