From eeee6797b423b2984ab57a12222209fedbc528ae Mon Sep 17 00:00:00 2001 From: Daniel Waterworth Date: Fri, 8 May 2015 14:33:09 +0100 Subject: [PATCH] Fixed regexes --- pusher/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'