diff --git a/nip30.ts b/nip30.ts index 31257ff..dffb2c9 100644 --- a/nip30.ts +++ b/nip30.ts @@ -42,7 +42,7 @@ export function* matchAll(content: string): Iterable { /** Replace all emoji shortcodes in the content. */ export function replaceAll(content: string, replacer: (match: CustomEmoji) => string): string { - return content.replaceAll(regex(), (shortcode, name) => { + return content.replaceAll(regex(), (shortcode: string, name: string) => { return replacer({ shortcode: shortcode as `:${string}:`, name,