mirror of
https://github.com/caronc/apprise.git
synced 2024-11-25 01:24:03 +01:00
Decreased phone-no min_len requirements (#591)
This commit is contained in:
parent
9ef8e72952
commit
8ed4b7b72a
@ -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:
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user