mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
lint: Add dangling commas in JavaScript objects.
This commit is contained in:
@@ -18,7 +18,7 @@ var bugdown_re = [
|
||||
/[^\s]*(?:\.bmp|\.gif|\.jpg|\.jpeg|\.png|\.webp)\s+/m,
|
||||
/[^\s]*(?:\.bmp|\.gif|\.jpg|\.jpeg|\.png|\.webp)$/m,
|
||||
// Twitter and youtube links are given previews
|
||||
/[^\s]*(?:twitter|youtube).com\/[^\s]*/
|
||||
/[^\s]*(?:twitter|youtube).com\/[^\s]*/,
|
||||
];
|
||||
|
||||
exports.contains_bugdown = function contains_bugdown(content) {
|
||||
@@ -417,7 +417,7 @@ $(function () {
|
||||
function disable_markdown_regex(rules, name) {
|
||||
rules[name] = {exec: function () {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
@@ -500,7 +500,7 @@ $(function () {
|
||||
streamHandler: handleStream,
|
||||
realmFilterHandler: handleRealmFilter,
|
||||
renderer: r,
|
||||
preprocessors: [preprocess_code_blocks]
|
||||
preprocessors: [preprocess_code_blocks],
|
||||
});
|
||||
|
||||
function on_failed_action(action, callback) {
|
||||
|
||||
Reference in New Issue
Block a user