mirror of
https://github.com/zulip/zulip.git
synced 2025-11-09 08:26:11 +00:00
eslint: Fix unicorn/better-regex.
https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/rules/better-regex.md Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
a37616e8c6
commit
0042cf51c1
@@ -317,7 +317,7 @@ exports.paste_handler = function (event) {
|
||||
const paste_html = clipboardData.getData("text/html");
|
||||
if (paste_html && page_params.development_environment) {
|
||||
const text = exports.paste_handler_converter(paste_html);
|
||||
const mdImageRegex = /^!\[.*\]\(.*\)$/;
|
||||
const mdImageRegex = /^!\[.*]\(.*\)$/;
|
||||
if (text.match(mdImageRegex)) {
|
||||
// This block catches cases where we are pasting an
|
||||
// image into Zulip, which is handled by upload.js.
|
||||
|
||||
Reference in New Issue
Block a user