Skip to content

Commit

Permalink
fix: ハイフンを含むリモート絵文字が描画されない (misskey-dev#13715)
Browse files Browse the repository at this point in the history
  • Loading branch information
anatawa12 authored Apr 27, 2024
1 parent 20eb4bc commit fe1172f
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 fe1172f

Please sign in to comment.