Browse Source

Day4

master
Karl Spickermann 1 year ago
parent
commit
74caa969d3
  1. 2
      day4/day4.go

2
day4/day4.go

@ -85,7 +85,7 @@ func isValidPart2(document string) bool {
return false
}
case "pid":
if match, _ := regexp.MatchString("[0-9]{8}", pair[1]); !match{
if match, _ := regexp.MatchString("^[0-9]{8}$", pair[1]); !match{
return false
}
}

Loading…
Cancel
Save