Skip to content

Commit

Permalink
Update validator.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jukbot committed May 17, 2024
1 parent 68d2207 commit fe1a31e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function isValidThaiID(id) {
// Check if the ID is a valid string of 13 digits.
if (!/^\d{13}$/.test(id)) {
return false;
} else if (id[0]==0){
} else if (id[0] === 0){
return false;
}

Expand Down

0 comments on commit fe1a31e

Please sign in to comment.