|
@@ -1149,7 +1149,7 @@ async function part2(validArray) {
|
|
//Eye Colour
|
|
//Eye Colour
|
|
if (eyeColour.includes(ecl[1])) {
|
|
if (eyeColour.includes(ecl[1])) {
|
|
//passport ID
|
|
//passport ID
|
|
- if (pid[1].match(/\d{9}/g) && pid[1].length == 9) {
|
|
|
|
|
|
+ if (pid[1].match(/\b\d{9}\b/g)) {
|
|
//Height
|
|
//Height
|
|
// Height in CM
|
|
// Height in CM
|
|
if (hgt[1].includes('cm')) {
|
|
if (hgt[1].includes('cm')) {
|