mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
Revert "Streams: Disallow certain markdown characters in stream names."
This reverts commit dd1b14378b.
Deleted a conflicted test entirely.
This commit is contained in:
@@ -33,11 +33,6 @@ var stream_name_error = (function () {
|
||||
$("#stream_name_error").show();
|
||||
};
|
||||
|
||||
self.report_invalid_chars = function () {
|
||||
$("#stream_name_error").text(i18n.t("Stream names cannot contain #, *, `, or @."));
|
||||
$("#stream_name_error").show();
|
||||
};
|
||||
|
||||
self.select = function () {
|
||||
$("#create_stream_name").focus().select();
|
||||
};
|
||||
@@ -71,13 +66,6 @@ var stream_name_error = (function () {
|
||||
return false;
|
||||
}
|
||||
|
||||
// Keep characters in sync with Stream.NAME_INVALID_CHARS
|
||||
if (/[#*`@]/.test(stream_name)) {
|
||||
self.report_invalid_chars();
|
||||
self.select();
|
||||
return false;
|
||||
}
|
||||
|
||||
// If we got this far, then we think we have a new unique stream
|
||||
// name, so we'll submit to the server. (It's still plausible,
|
||||
// however, that there's some invite-only stream that we don't
|
||||
|
||||
Reference in New Issue
Block a user