Skip to content

Commit

Permalink
fix(backend): /emojiにおける拡張子の削除方法を修正 (#12543)
Browse files Browse the repository at this point in the history
Co-authored-by: Acid Chicken (硫酸鶏) <[email protected]>
  • Loading branch information
7ka-Hiira and acid-chicken authored Dec 3, 2023
1 parent c68d875 commit 2eb86e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/backend/src/server/ServerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ export class ServerService implements OnApplicationShutdown {
return;
}

const name = path.split('@')[0].replace('.webp', '');
const host = path.split('@')[1]?.replace('.webp', '');
const name = path.split('@')[0].replace(/\.webp$/i, '');
const host = path.split('@')[1]?.replace(/\.webp$/i, '');

const emoji = await this.emojisRepository.findOneBy({
// `@.` is the spec of ReactionService.decodeReaction
Expand Down

0 comments on commit 2eb86e0

Please sign in to comment.