Skip to content

Commit

Permalink
Refactor mykadGender function to improve gender determination logic
Browse files Browse the repository at this point in the history
  • Loading branch information
razmans committed Oct 20, 2024
1 parent c8cc086 commit 818e7b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export function mykadDOB(mykad: string): string {
* @returns Gender string 'F' or 'M'
*/

/** Determine a person's gender based on MyKad number */
/** Determine a person's gender based on MyKad number */
export function mykadGender(mykad: string): string {
if (!mykadValidator(mykad)) {
return 'MYKAD INVALID';
Expand Down
2 changes: 1 addition & 1 deletion jsr.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@razmans/mykad",
"version": "1.2.7",
"version": "1.2.8",
"license": "MIT",
"exports": "./index.ts"
}

0 comments on commit 818e7b7

Please sign in to comment.