teach ReactionService about non-ASCII emoji names
This commit is contained in:
parent
b6f41a28ed
commit
0f3764ff71
@ -64,8 +64,8 @@ type DecodedReaction = {
|
||||
host?: string | null;
|
||||
};
|
||||
|
||||
const isCustomEmojiRegexp = /^:([\w+-]+)(?:@\.)?:$/;
|
||||
const decodeCustomEmojiRegexp = /^:([\w+-]+)(?:@([\w.-]+))?:$/;
|
||||
const isCustomEmojiRegexp = /^:([\p{Letter}\p{Number}\p{Mark}_+-]+)(?:@\.)?:$/;
|
||||
const decodeCustomEmojiRegexp = /^:([\p{Letter}\p{Number}\p{Mark}_+-]+)(?:@([\w.-]+))?:$/;
|
||||
|
||||
@Injectable()
|
||||
export class ReactionService {
|
||||
|
Loading…
Reference in New Issue
Block a user