From f0a51800192d4e2024c89e6759f50b7fc5f1dc7d Mon Sep 17 00:00:00 2001 From: Jamie Kyle Date: Mon, 12 Dec 2022 15:35:32 -0800 Subject: [PATCH] fix lint --- ts/util/graphemeAndLinkAwareSlice.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ts/util/graphemeAndLinkAwareSlice.ts b/ts/util/graphemeAndLinkAwareSlice.ts index f5bd881d2..374b923b9 100644 --- a/ts/util/graphemeAndLinkAwareSlice.ts +++ b/ts/util/graphemeAndLinkAwareSlice.ts @@ -57,7 +57,9 @@ const expandToIncludeEntireLink = ( startIndex < truncated.length && lastIndex > truncated.length ); - if (truncatedLink.length === 0) return truncated; + if (truncatedLink.length === 0) { + return truncated; + } return original.slice(0, truncatedLink[0].lastIndex); };