diff --git a/pusher/util.py b/pusher/util.py index f856c93..09a2531 100644 --- a/pusher/util.py +++ b/pusher/util.py @@ -10,8 +10,8 @@ channel_name_re = re.compile('^[-a-zA-Z0-9_=@,.;]+$') app_id_re = re.compile('^[0-9]+$') -pusher_url_re = re.compile('(http|https)://(.*):(.*)@(.*)/apps/([0-9]+)') -socket_id_re = re.compile('\d+\.\d+') +pusher_url_re = re.compile('(http|https)://(.*):(.*)@(.*)/apps/([0-9]+)$') +socket_id_re = re.compile('\d+\.\d+$') if sys.version_info < (3,): text = 'a unicode string'