Skip to content

Commit afaf75d

Browse files
committed
Merge pull request #50 from pusher/regex_fixes
Fixed regexes
2 parents 26110e6 + eeee679 commit afaf75d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pusher/util.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
channel_name_re = re.compile('^[-a-zA-Z0-9_=@,.;]+$')
1212
app_id_re = re.compile('^[0-9]+$')
13-
pusher_url_re = re.compile('(http|https)://(.*):(.*)@(.*)/apps/([0-9]+)')
14-
socket_id_re = re.compile('\d+\.\d+')
13+
pusher_url_re = re.compile('(http|https)://(.*):(.*)@(.*)/apps/([0-9]+)$')
14+
socket_id_re = re.compile('\d+\.\d+$')
1515

1616
if sys.version_info < (3,):
1717
text = 'a unicode string'

0 commit comments

Comments
 (0)