function infection(diseases) { return /^([, ]*\d{5})+[, ]*$/.test(diseases);}

utlozico:

140930

yaaas