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

Fix rejecting invalid ecNumber inputs #359

Conversation

BunnyHoppp
Copy link

@BunnyHoppp BunnyHoppp commented Nov 11, 2024

addEcNumber command can only accept 8 digit numbers, and would reject numbers that has less or more than 8 digits. There are some phone numbers that might be less than or more than 8 digits that are valid phone numbers.

Fixed addEcNumber to accept numbers with at least 3 digits, as to not reject valid inputs.

Error message is then incorrect. Error message is updated accordingly in the same commit 1ca2389.

Fixes #309.

EcNumber can now take in numbers
with 3 digits or more, since some
phone numbers can be more than 8
digits or less than 8 digits.
Update documentation to accept
numbers that are at least
3 digits
@BunnyHoppp BunnyHoppp added this to the v1.6 milestone Nov 11, 2024
Copy link

codecov bot commented Nov 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Files with missing lines Coverage Δ Complexity Δ
...main/java/seedu/address/model/person/EcNumber.java 94.44% <ø> (ø) 12.00 <0.00> (ø)

@gohqingkhang gohqingkhang merged commit 7e50d71 into AY2425S1-CS2103-F12-4:master Nov 11, 2024
4 checks passed
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 this pull request may close these issues.

[PE-D][Tester F] Inconsistent constraints on number of digits for phone number and emergency number
2 participants