79534827

Date: 2025-03-25 20:46:26
Score: 1
Natty:
Report link

I'd implement it using regex

fun String.convertPhoneNumber(): String {
    return this.replace("[^+\\d]".toRegex(), "")
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Arno