mirror of https://github.com/caronc/apprise
Decreased phone-no min_len requirements (#591)
parent
9ef8e72952
commit
8ed4b7b72a
|
@ -294,7 +294,7 @@ def is_uuid(uuid):
|
||||||
return True if match else False
|
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
|
"""Determine if the specified entry is a phone number
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
|
|
@ -39,7 +39,7 @@ apprise_url_tests = (
|
||||||
# We failed to identify any valid authentication
|
# We failed to identify any valid authentication
|
||||||
'instance': TypeError,
|
'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
|
# invalid target numbers; we'll fail to notify anyone
|
||||||
'instance': plugins.NotifyClickSend,
|
'instance': plugins.NotifyClickSend,
|
||||||
'notify_response': False,
|
'notify_response': False,
|
||||||
|
|
|
@ -39,7 +39,7 @@ apprise_url_tests = (
|
||||||
# We failed to identify any valid authentication
|
# We failed to identify any valid authentication
|
||||||
'instance': TypeError,
|
'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
|
# No valid targets to notify
|
||||||
'instance': plugins.NotifyD7Networks,
|
'instance': plugins.NotifyD7Networks,
|
||||||
# Since there are no targets specified we expect a False return on
|
# Since there are no targets specified we expect a False return on
|
||||||
|
|
Loading…
Reference in New Issue