diff --git a/api/bots/zephyr_mirror.py b/api/bots/zephyr_mirror.py index 3a8ff9ae5d..580b8e1963 100755 --- a/api/bots/zephyr_mirror.py +++ b/api/bots/zephyr_mirror.py @@ -512,7 +512,7 @@ web interface. print def valid_stream_name(name): - return re.match(r'^[\w.][\w. -]*$', name, flags=re.UNICODE) + return True def parse_zephyr_subs(verbose=False): zephyr_subscriptions = set() diff --git a/zephyr/views.py b/zephyr/views.py index f4f5cec704..d63db24a10 100644 --- a/zephyr/views.py +++ b/zephyr/views.py @@ -767,8 +767,7 @@ def json_remove_subscription(request): return json_success({"data": sub_name}) def valid_stream_name(name): - # Streams must start with a letter or number or a dot. - return re.match(r'^[\w.][\w. -]*$', name, flags=re.UNICODE) + return True @login_required_api_view def api_subscribe(request, user_profile):