From 27886befbbb9d890284871acc5a3a36ff61e3e19 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Fri, 25 Jul 2008 14:15:51 -0400 Subject: [PATCH] allowing expiration dates with strings longer than one digit (e.g. "10m" meaning "10 months") --- src/common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common b/src/common index 6fc5f33..b57b721 100644 --- a/src/common +++ b/src/common @@ -115,7 +115,7 @@ translate_ssh_variables() { # test that a string to conforms to GPG's expiration format test_gpg_expire() { - echo "$1" | egrep -q "^[0-9][mwy]?$" + echo "$1" | egrep -q "^[0-9]+[mwy]?$" } # check that a file is properly owned, and that all it's parent -- 2.25.1