mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 06:53:25 +00:00
js: Remove extra consecutive spaces.
Prettier would do this anyway, but it’s separated out for a more reviewable diff. Generated by ESLint. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
883e2fd325
commit
8046b6477a
@@ -5,19 +5,19 @@
|
||||
// auto-completing code blocks missing a trailing close.
|
||||
|
||||
// See backend fenced_code.py:71 for associated regexp
|
||||
const fencestr = "^(~{3,}|`{3,})" + // Opening Fence
|
||||
"[ ]*" + // Spaces
|
||||
"(" +
|
||||
"\\{?\\.?" +
|
||||
"([a-zA-Z0-9_+-./#]*)" + // Language
|
||||
"\\}?" +
|
||||
")" +
|
||||
"[ ]*" + // Spaces
|
||||
"(" +
|
||||
"\\{?\\.?" +
|
||||
"([^~`]*)" + // Header (see fenced_code.py)
|
||||
"\\}?" +
|
||||
")" +
|
||||
const fencestr = "^(~{3,}|`{3,})" + // Opening Fence
|
||||
"[ ]*" + // Spaces
|
||||
"(" +
|
||||
"\\{?\\.?" +
|
||||
"([a-zA-Z0-9_+-./#]*)" + // Language
|
||||
"\\}?" +
|
||||
")" +
|
||||
"[ ]*" + // Spaces
|
||||
"(" +
|
||||
"\\{?\\.?" +
|
||||
"([^~`]*)" + // Header (see fenced_code.py)
|
||||
"\\}?" +
|
||||
")" +
|
||||
"$";
|
||||
const fence_re = new RegExp(fencestr);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user