summaryrefslogtreecommitdiff
path: root/bin/efa
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2010-05-06 07:40:21 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2010-05-06 07:40:21 +0200
commitdd78ad345f868c9cd9702b6ecb8223415a6dbd27 (patch)
treed1fa6033376905a64cc728afbca078388df3abd2 /bin/efa
parent616becbfdb3bed82da99bd950cbfe4bf28856bb7 (diff)
Fix --date verification regex
Diffstat (limited to 'bin/efa')
-rwxr-xr-xbin/efa2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/efa b/bin/efa
index 72d6ed8..3ce7da9 100755
--- a/bin/efa
+++ b/bin/efa
@@ -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);