We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6242ea7 commit ab64791Copy full SHA for ab64791
pusher/util.py
@@ -11,9 +11,10 @@
11
import six
12
import sys
13
import base64
14
+SERVER_TO_USER_PREFIX = "#server-to-user-"
15
16
channel_name_re = re.compile(r'\A[-a-zA-Z0-9_=@,.;]+\Z')
-server_to_user_channel_re = re.compile(r'\A#server-to-user[-a-zA-Z0-9_=@,.;]+\Z')
17
+server_to_user_channel_re = re.compile(rf'\A{SERVER_TO_USER_PREFIX}[-a-zA-Z0-9_=@,.;]+\Z')
18
app_id_re = re.compile(r'\A[0-9]+\Z')
19
pusher_url_re = re.compile(r'\A(http|https)://(.*):(.*)@(.*)/apps/([0-9]+)\Z')
20
socket_id_re = re.compile(r'\A\d+\.\d+\Z')
0 commit comments