Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions data/games.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export const games: Game[] = [
title: '定义',
developer: '六白七十一',
releaseDate: '2024-11-08',
url: 'https://www.acfun.cn/v/ac48199654',
url: 'https://www.acfun.cn/v/ac48199654/',

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

为了在未来自动保持这种格式上的一致性,可以考虑添加一个单元测试。该测试可以遍历 games 数组,并断言每个 url 字符串都以 / 结尾。这样可以防止未来有人在添加新游戏时忘记添加末尾的斜杠。

cover: 'dingyi.webp',
},
{
Expand All @@ -105,7 +105,7 @@ export const games: Game[] = [
title: '玩魅魔GalGame的玩家都有魅魔陪着不是很正常的事情吗',
developer: 'kzcserin',
releaseDate: '2025-04-19',
url: 'https://humihumi.com/game/a4d8509a-821a-4841-8e8e-c85094718216',
url: 'https://humihumi.com/game/a4d8509a-821a-4841-8e8e-c85094718216/',
cover: 'SuccubusGalGames.webp',
},
{
Expand Down