UNPKG

t-comm

Version:

专业、稳定、纯粹的工具库

14 lines (13 loc) 425 B
/** * 获取 rtx 拼接的提及字符串 * @param rawStr 原始字符串,比如 `foo,bar` * @returns 处理后的字符串,比如 <@foo><@bar> * @example * ```ts * getMentionRtx('foo,bar'); // '<@foo><@bar>' * getMentionRtx('foo;bar'); // '<@foo><@bar>' * getMentionRtx('foo'); // '<@foo>' * getMentionRtx(''); // '' * ``` */ export declare function getMentionRtx(rawStr?: string): string;