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:
Anders Kaseorg
2020-10-07 03:37:15 -07:00
committed by Tim Abbott
parent a37616e8c6
commit 0042cf51c1
12 changed files with 33 additions and 33 deletions

View File

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