mirror of
https://github.com/paricafe/misskey.git
synced 2025-02-17 13:37:29 -06:00
backend: match Unicode in exporting emojis
This commit is contained in:
parent
8f366a39c8
commit
d64b0b3865
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ export class ExportCustomEmojisProcessorService {
|
|||
});
|
||||
|
||||
for (const emoji of customEmojis) {
|
||||
if (!/^[a-zA-Z0-9_]+$/.test(emoji.name)) {
|
||||
if (!/^[\p{Letter}\p{Number}\p{Mark}_+-]+$/u.test(emoji.name)) {
|
||||
this.logger.error(`invalid emoji name: ${emoji.name}`);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue