mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 03:11:54 +00:00
eslint: Enable no-extra-parens rule.
Following sub-configuration is disabled:
"nestedBinaryExpressions": false,
This commit is contained in:
@@ -122,10 +122,10 @@ exports.add_subject_links = function (message) {
|
||||
};
|
||||
|
||||
exports.is_status_message = function (raw_content, content) {
|
||||
return (raw_content.indexOf('/me ') === 0 &&
|
||||
return raw_content.indexOf('/me ') === 0 &&
|
||||
raw_content.indexOf('\n') === -1 &&
|
||||
content.indexOf('<p>') === 0 &&
|
||||
content.lastIndexOf('</p>') === content.length - 4);
|
||||
content.lastIndexOf('</p>') === content.length - 4;
|
||||
};
|
||||
|
||||
function handleUnicodeEmoji(unicode_emoji) {
|
||||
|
||||
Reference in New Issue
Block a user