Commit dd78ad34 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Fix --date verification regex

parent 616becbf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -288,7 +288,7 @@ if ($time) {
	@post{'itdTimeHour', 'itdTimeMinute'} = split(/:/, $time);
}
if ($date) {
	if ($date !~ /^ [0-3]? \d \. [01]? \d (?: \. \d{4} )? /x) {
	if ($date !~ /^ [0-3]? \d \. [01]? \d (?: \. \d{4} )? $/x) {
		die("Invalid argument: Usage: --date DD.MM[.YYYY]\n");
	}
	@post{'itdDateDay', 'itdDateMonth', 'itdDateYear'} = split(/\./, $date);