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

Parsing doesn't work properly updating from 3.5.10 to 3.6.1 #660

Closed
3 tasks done
niorko opened this issue Jun 15, 2023 · 0 comments · Fixed by #661
Closed
3 tasks done

Parsing doesn't work properly updating from 3.5.10 to 3.6.1 #660

niorko opened this issue Jun 15, 2023 · 0 comments · Fixed by #661

Comments

@niorko
Copy link

niorko commented Jun 15, 2023

New Issue Checklist

Steps to reproduce

let kit = PhoneNumberKit()
let kitNumber = try kit.parse("420777666555", withRegion: "CZ")
let formattedNumber = kit.format(kitNumber, toType: .international)
XCTAssertEqual(formattedNumber, "+420 777 666 555")
Expected result

Assert succeed

Actual result

It fails with: PhoneNumberKit.PhoneNumberError.invalidNumber

Environment

  • Integration through SPM - version 3.6.1
  • Xcode 14.3.1

Notes

  • Our tests caught it - it worked properly on 3.5.10
@niorko niorko changed the title Parsing doesn't work properly updating from 3.5.7 to 3.6.1 Parsing doesn't work properly updating from 3.5.10 to 3.6.1 Jun 15, 2023
bguidolim added a commit that referenced this issue Jun 15, 2023
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 a pull request may close this issue.

1 participant