mirror of
				https://github.com/PerMalmberg/libcron.git
				synced 2025-10-31 12:08:40 -05:00 
			
		
		
		
	No need to run both validate_numeric and validate_literal.
This commit is contained in:
		| @@ -31,10 +31,8 @@ namespace libcron | |||||||
|             valid &= validate_numeric<Minutes>(match[2], minutes); |             valid &= validate_numeric<Minutes>(match[2], minutes); | ||||||
|             valid &= validate_numeric<Hours>(match[3], hours); |             valid &= validate_numeric<Hours>(match[3], hours); | ||||||
|             valid &= validate_numeric<DayOfMonth>(match[4], day_of_month); |             valid &= validate_numeric<DayOfMonth>(match[4], day_of_month); | ||||||
|             valid &= validate_numeric<Months>(match[5], months) |             valid &= validate_literal<Months>(match[5], months, month_names, 1); | ||||||
|                      || validate_literal<Months>(match[5], months, month_names, 1); |             valid &= validate_literal<DayOfWeek>(match[6], day_of_week, day_names, 0); | ||||||
|             valid &= validate_numeric<DayOfWeek>(match[6], day_of_week) |  | ||||||
|                      || validate_literal<DayOfWeek>(match[6], day_of_week, day_names, 0); |  | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user