From f26e84445734b919e2df5405245e5c27e1fad9e1 Mon Sep 17 00:00:00 2001 From: siddharth Date: Sat, 29 May 2021 13:41:04 -0400 Subject: acmens.py: update `_agree_to` Fix regex. --- acmens.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acmens.py b/acmens.py index 38eac6d..9b4c2d9 100644 --- a/acmens.py +++ b/acmens.py @@ -25,7 +25,7 @@ from urllib.request import urlopen from urllib.error import HTTPError -__version__ = "0.1.5-dev1" +__version__ = "0.1.5-dev2" CA_PRD = "https://acme-v02.api.letsencrypt.org" CA_STG = "https://acme-staging-v02.api.letsencrypt.org" @@ -234,7 +234,7 @@ def _agree_to(terms): ans = input( "\nDo you agree to the Let's Encrypt Subscriber Agreement\n({})? ".format(terms) ) - if re.search(r"[Yy]", ans) is None: + if re.search(r"^[Yy]", ans) is None: sys.stderr.write("Error: Cannot continue. Exiting.\n") sys.exit(1) -- cgit v1.2.3