Day4
This commit is contained in:
parent
3833a1e433
commit
74caa969d3
|
@ -85,7 +85,7 @@ func isValidPart2(document string) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
case "pid":
|
case "pid":
|
||||||
if match, _ := regexp.MatchString("[0-9]{8}", pair[1]); !match{
|
if match, _ := regexp.MatchString("^[0-9]{8}$", pair[1]); !match{
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user