diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2010-05-06 07:40:21 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2010-05-06 07:40:21 +0200 |
commit | dd78ad345f868c9cd9702b6ecb8223415a6dbd27 (patch) | |
tree | d1fa6033376905a64cc728afbca078388df3abd2 /bin/efa | |
parent | 616becbfdb3bed82da99bd950cbfe4bf28856bb7 (diff) |
Fix --date verification regex
Diffstat (limited to 'bin/efa')
-rwxr-xr-x | bin/efa | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |