From 8ed4b7b72ad47487ed600eb81fa811cc4836a30d Mon Sep 17 00:00:00 2001 From: Chris Caron Date: Mon, 30 May 2022 05:36:52 -0400 Subject: [PATCH] Decreased phone-no min_len requirements (#591) --- apprise/utils.py | 2 +- test/test_plugin_clicksend.py | 2 +- test/test_plugin_d7networks.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apprise/utils.py b/apprise/utils.py index f07bb2cf..31647ce7 100644 --- a/apprise/utils.py +++ b/apprise/utils.py @@ -294,7 +294,7 @@ def is_uuid(uuid): return True if match else False -def is_phone_no(phone, min_len=11): +def is_phone_no(phone, min_len=10): """Determine if the specified entry is a phone number Args: diff --git a/test/test_plugin_clicksend.py b/test/test_plugin_clicksend.py index 7e98573c..df5ef082 100644 --- a/test/test_plugin_clicksend.py +++ b/test/test_plugin_clicksend.py @@ -39,7 +39,7 @@ apprise_url_tests = ( # We failed to identify any valid authentication 'instance': TypeError, }), - ('clicksend://user:pass@{}/{}/{}'.format('1' * 10, '2' * 15, 'a' * 13), { + ('clicksend://user:pass@{}/{}/{}'.format('1' * 9, '2' * 15, 'a' * 13), { # invalid target numbers; we'll fail to notify anyone 'instance': plugins.NotifyClickSend, 'notify_response': False, diff --git a/test/test_plugin_d7networks.py b/test/test_plugin_d7networks.py index 3f6a758d..4df33bd9 100644 --- a/test/test_plugin_d7networks.py +++ b/test/test_plugin_d7networks.py @@ -39,7 +39,7 @@ apprise_url_tests = ( # We failed to identify any valid authentication 'instance': TypeError, }), - ('d7sms://user:pass@{}/{}/{}'.format('1' * 10, '2' * 15, 'a' * 13), { + ('d7sms://user:pass@{}/{}/{}'.format('1' * 9, '2' * 15, 'a' * 13), { # No valid targets to notify 'instance': plugins.NotifyD7Networks, # Since there are no targets specified we expect a False return on