Skip to content

Add donor country ID#372

Open
yedidya03 wants to merge 8 commits intomasterfrom
add-donor-id
Open

Add donor country ID#372
yedidya03 wants to merge 8 commits intomasterfrom
add-donor-id

Conversation

@yedidya03
Copy link
Collaborator

No description provided.

return PersonalDetailsValidation.ID_HAS_NANS;
}
const formatValidator = /^\d{9}$/;
if (id.length > 0 && !formatValidator.test(id)) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you want to go all the way, you can also check the "check digit" (ספרת ביקורת).
It is not hard to implement, you can find some js implementations online

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

/>

<Input
label="תעודת זהות"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

מספר תעודת זהות

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

return PersonalDetailsValidation.VALID_FIELD;
};

export const ValidateIdNumber = (id: string): CountryIdNumberValidation => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add tests to cover all cases

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

@yaron1m
Copy link
Collaborator

yaron1m commented Mar 26, 2022

Any update here? @yedidya03

@yaron1m
Copy link
Collaborator

yaron1m commented Apr 18, 2022

Ping @yedidya03

@evbambly evbambly self-requested a review May 16, 2022 14:51
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.

3 participants