Fix (most) slow types by adding explicit return types

This commit is contained in:
Alex Gleason
2024-03-06 11:47:50 -06:00
committed by fiatjaf_
parent 63ccc8b4c8
commit 9c0ade1329
12 changed files with 38 additions and 28 deletions

View File

@@ -2,7 +2,7 @@
export const EMOJI_SHORTCODE_REGEX = /:(\w+):/
/** Regex to find emoji shortcodes in content. */
export const regex = () => new RegExp(`\\B${EMOJI_SHORTCODE_REGEX.source}\\B`, 'g')
export const regex = (): RegExp => new RegExp(`\\B${EMOJI_SHORTCODE_REGEX.source}\\B`, 'g')
/** Represents a Nostr custom emoji. */
export interface CustomEmoji {