summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfbriere <fbriere>2006-02-13 21:35:29 +0000
committerfbriere <fbriere>2006-02-13 21:35:29 +0000
commit4b7a5ee304316798c4ad690dbadbcf5f0fe125fa (patch)
tree341805e7810c94b481d5286e2845ff39978359d1
parentd1e94c5adde6e4bbb8daf1907c0e3e4fdb4f7378 (diff)
Allow MMYY expiration date
-rwxr-xr-xInternetSecure.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/InternetSecure.pm b/InternetSecure.pm
index a6240bc..964eb9e 100755
--- a/InternetSecure.pm
+++ b/InternetSecure.pm
@@ -85,7 +85,7 @@ sub parse_expdate {
($y, $m) = ($1, $2);
} elsif (/^(\d{1,2})\W(\d{4})$/ || # 07-2004 or 7/2004
/^(\d)\W(\d\d)$/ || # 7/04
- /^(\d\d)\/(\d\d)$/) { # 07/04
+ /^(\d\d)\/?(\d\d)$/) { # 07/04 or 0704
($y, $m) = ($2, $1);
} else {
croak "Unable to parse expiration date: $str";