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

feat(isPassportNumber): added validation for Indonesia (ID) #1498

Conversation

pandu-supriyono
Copy link

@pandu-supriyono pandu-supriyono commented Oct 24, 2020

Added a regex for passports of the Republic of Indonesia.
Every few years, the first character increments alphabetically. As of October 2020, only passports starting with A, B, or C have been issued. An eventual update would be in order.

Checklist

  • PR contains only changes related; no stray files, etc.
  • README updated (where applicable)
  • Tests written (where applicable)

@codecov
Copy link

codecov bot commented Oct 24, 2020

Codecov Report

Merging #1498 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1498   +/-   ##
=======================================
  Coverage   99.92%   99.92%           
=======================================
  Files          96       96           
  Lines        1277     1277           
=======================================
  Hits         1276     1276           
  Misses          1        1           
Impacted Files Coverage Δ
src/lib/isPassportNumber.js 100.00% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bab507a...b190c5d. Read the comment docs.

Copy link
Member

@profnandaa profnandaa left a comment

Choose a reason for hiding this comment

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

LGTM for the most part, check my comments below. Thanks for your PR! 🎉

@@ -149,7 +149,9 @@ var _isISO31661Alpha2 = _interopRequireDefault(require("./lib/isISO31661Alpha3")

var _isBase = _interopRequireDefault(require("./lib/isBase32"));

var _isBase2 = _interopRequireDefault(require("./lib/isBase64"));
var _isBase2 = _interopRequireDefault(require("./lib/isBase58"));
Copy link
Member

Choose a reason for hiding this comment

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

Since changes in the index.js file are unrelated, you can leave out this file from the PR.

@@ -2354,11 +2356,13 @@ var phones = {
'be-BY': /^(\+?375)?(24|25|29|33|44)\d{7}$/,
'bg-BG': /^(\+?359|0)?8[789]\d{7}$/,
'bn-BD': /^(\+?880|0)1[13456789][0-9]{8}$/,
'ca-AD': /^(\+376)?[346]\d{5}$/,
Copy link
Member

Choose a reason for hiding this comment

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

Same here, also remove the unrelated changes; please re-base correctly.

@profnandaa profnandaa added the 🧹 needs-update For PRs that need to be updated before landing label Nov 29, 2020
Copy link
Member

@ezkemboi ezkemboi left a comment

Choose a reason for hiding this comment

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

Looks good. Just work on comments and fix any merge conflicts and this is good to go.

@profnandaa
Copy link
Member

@pandu-supriyono - ping!

@rubiin
Copy link
Member

rubiin commented Apr 24, 2021

@pandu-supriyono - ping!

this looks stale and the author has not responded, I will take this if no one is up for it

@tux-tn
Copy link
Member

tux-tn commented Apr 25, 2021

@rubiin feel free to take it! There is many more stale PRs, we should probably take care of them

@rubiin
Copy link
Member

rubiin commented Apr 25, 2021

@rubiin feel free to take it! There is many more stale PRs, we should probably take care of them

yeah. lets not make the repo look inactive by stacking up stale prs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎉 first-pr 🧹 needs-update For PRs that need to be updated before landing stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants