Skip to content

Commit

Permalink
fix: ハイフンを含むリモート絵文字が描画されない
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 authored Apr 14, 2024
1 parent bba3097 commit 1318270
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/backend/src/core/CustomEmojiService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import { query } from '@/misc/prelude/url.js';
import type { Serialized } from '@/types.js';
import { ModerationLogService } from '@/core/ModerationLogService.js';

const parseEmojiStrRegexp = /^(\w+)(?:@([\w.-]+))?$/;
const parseEmojiStrRegexp = /^([-\w]+)(?:@([\w.-]+))?$/;

@Injectable()
export class CustomEmojiService implements OnApplicationShutdown {
Expand Down

0 comments on commit 1318270

Please sign in to comment.