Skip to content

Commit

Permalink
fix(core): resolve testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
shiv9604 committed Dec 26, 2024
1 parent a326d36 commit fb1c963
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ export function tuiCreateCompletePhoneInsertionPreprocessor(
* and mask are ready to reject "extra" characters.
* We should cut leading country prefix to save trailing characters!
*/
countDigits(value) > completePhoneLength ||
value.startsWith(countryCode)
countDigits(value) > completePhoneLength
? trimCountryPrefix(value)
: value,
},
Expand Down

0 comments on commit fb1c963

Please sign in to comment.