Decreased phone-no min_len requirements (#591)

This commit is contained in:
Chris Caron 2022-05-30 05:36:52 -04:00 committed by GitHub
parent 9ef8e72952
commit 8ed4b7b72a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -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:

View File

@ -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,

View File

@ -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