Skip to content

Commit 9e2ac54

Browse files
More regex fixes
1 parent 72ed8ca commit 9e2ac54

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pusher/util.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
import six
99
import sys
1010

11-
channel_name_re = re.compile('^[-a-zA-Z0-9_=@,.;]+$')
12-
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+$')
11+
channel_name_re = re.compile('\A[-a-zA-Z0-9_=@,.;]+\Z')
12+
app_id_re = re.compile('\A[0-9]+\Z')
13+
pusher_url_re = re.compile('\A(http|https)://(.*):(.*)@(.*)/apps/([0-9]+)\Z')
14+
socket_id_re = re.compile('\A\d+\.\d+\Z')
1515

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

0 commit comments

Comments
 (0)