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