Closed kaungmyathan22 closed 1 year ago
This is intended behavior. Do you have a better suggestion?
Ok coming back to the issue, I see the point you were making. I apologize.
Will release the new version with empty string check to return Boolean
.
@kaungmyathan22 For phone = ' '
, we now will throw an error Phone number is empty.
. I don't think it would make sense to return false
for such an empty string.
let phone=""
when calling isValidMMPhoneNumber(phone) return nothing. andlet phone=" "
; when calling isValidMMPhoneNumber(phone) return false.