Skip to content

Commit ff1ea41

Browse files
committed
fix: add curly braces to satisfy eslint(curly) lint rule
1 parent f204b9a commit ff1ea41

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎extensions/feishu/src/outbound.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ const RENDERED_FEISHU_CARD = Symbol("openclaw.renderedFeishuCard");
4646
* only the emoji sequences are returned. If no emojis are found, returns undefined.
4747
*/
4848
export function extractEmojiOnly(raw: string | undefined): string | undefined {
49-
if (!raw) return undefined;
49+
if (!raw) { return undefined; }
5050
// Match Unicode emoji sequences (single code points + keycap/flag/ZWJ sequences)
5151
const emojiRegex =
5252
/(?:\p{Emoji_Presentation}|\p{Emoji}\uFE0F)(?:\u20E3|\uFE0F)?(?:\u200D(?:\p{Emoji_Presentation}|\p{Emoji}\uFE0F)(?:\u20E3|\uFE0F)?)*/gu;
5353
const matches = raw.match(emojiRegex);
54-
if (!matches || matches.length === 0) return undefined;
54+
if (!matches || matches.length === 0) { return undefined; }
5555
const joined = matches.join(" ").trim();
5656
return joined || undefined;
5757
}

0 commit comments

Comments
 (0)