From a935456acab0c7bdc021829e18ce20230e18c752 Mon Sep 17 00:00:00 2001 From: yakov116 <16872793+yakov116@users.noreply.github.com> Date: Wed, 18 Nov 2020 19:55:59 -0500 Subject: Lint (#3723) --- source/helpers/smart-block-wrap.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/helpers/smart-block-wrap.ts') diff --git a/source/helpers/smart-block-wrap.ts b/source/helpers/smart-block-wrap.ts index 10a368cd..8d51fb48 100644 --- a/source/helpers/smart-block-wrap.ts +++ b/source/helpers/smart-block-wrap.ts @@ -1,7 +1,10 @@ // Wraps string in at least two newlines on each side, // as long as the field doesn't already have them. // Code adapted from GitHub. -export default function smartBlockWrap(content: string, field: HTMLTextAreaElement): string { +export default function smartBlockWrap( + content: string, + field: HTMLTextAreaElement +): string { const before = field.value.slice(0, field.selectionStart); const after = field.value.slice(field.selectionEnd); const [whitespaceAtStart] = /\n*$/.exec(before)!; -- cgit v1.2.3