Revert "Streams: Disallow certain markdown characters in stream names."

This reverts commit dd1b14378b.

Deleted a conflicted test entirely.
This commit is contained in:
Greg Price
2017-12-19 16:07:36 -08:00
parent 44a0cd77cb
commit ca1129dea3
5 changed files with 0 additions and 39 deletions

View File

@@ -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