From 823d94ef3626f458ec33b6d96f7e9004cb7e7ddb Mon Sep 17 00:00:00 2001 From: Giuseppe Date: Wed, 14 Dec 2022 10:05:53 +0100 Subject: [PATCH] fix: email with first level domain up to 8 digits --- setup.py | 2 +- src/spid_sp_test/__init__.py | 2 +- src/spid_sp_test/constants.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 015feef..97f53d9 100644 --- a/setup.py +++ b/setup.py @@ -41,7 +41,7 @@ def readme(): 'requests>=2.25.1', 'lxml>=4.6.2', 'Jinja2>=2.11.3', - 'spid_compliant_certificates>=0.4.1' + 'spid_compliant_certificates>=0.5.3' # 'sslyze>=4.0.4', # todo ], ) diff --git a/src/spid_sp_test/__init__.py b/src/spid_sp_test/__init__.py index e41de31..7c4ea36 100644 --- a/src/spid_sp_test/__init__.py +++ b/src/spid_sp_test/__init__.py @@ -6,7 +6,7 @@ BASE_DIR = Path(__file__).resolve().parent -__version__ = "1.2.8" +__version__ = "1.2.9" __name__ = "spid_sp_test" logger = logging.getLogger(__name__) diff --git a/src/spid_sp_test/constants.py b/src/spid_sp_test/constants.py index e54dd52..ba684a7 100644 --- a/src/spid_sp_test/constants.py +++ b/src/spid_sp_test/constants.py @@ -159,7 +159,7 @@ DESIRED_CERTIFICATE_LENGHT = 3072 # type: int NODE_NAME = "urn:oasis:names:tc:SAML:2.0:assertion:Assertion" -EMAIL_REGEXP = r"^(\w|\.|\_|\-)+[@](\w|\_|\-|\.)+[.]\w{2,6}$" +EMAIL_REGEXP = r"^(\w|\.|\_|\-)+[@](\w|\_|\-|\.)+[.]\w{2,8}$" ISO3166_CODES = [