tsevdos / elUtils

elUtils is a lightweight, zero-dependency TypeScript library providing utility functions for common tasks like geolocation, validation, and date handling, with features optimized for both Greek and international applications.
https://www.npmjs.com/package/@tsevdos/el-utils
MIT License
53 stars 15 forks source link

feat: add AMKA number validation function #53

Closed karate closed 9 months ago

karate commented 9 months ago

Closes #40

Validates the Greek social security number ("Αριθμός Μητρώου Κοινωνικής Ασφάλισης" aka ΑΜΚΑ)

ΑΜΚΑ is a 11 digit number. The first 6 digits is the date-of-birth in DDMMYY format. Another 4-digit auto-increment number follows. A checksum is added at the end, calculated using the Luhn algorithm.

changeset-bot[bot] commented 9 months ago

🦋 Changeset detected

Latest commit: c6d059037d7fcfb5158e8ee72f02a34d9b678eaa

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ----------------- | ----- | | @tsevdos/el-utils | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

tsevdos commented 9 months ago

Let's get a final approval from another person (feel free to suggest one) regarding the Luhn algorithm implementation and I'll be more than happy to merge it.

sonarcloud[bot] commented 9 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud