Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

スポンサー名に関するパターンマッチの修正 #1449

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
11 changes: 6 additions & 5 deletions atcoder-problems-frontend/src/utils/ContestClassifier.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export const classifyContest = (
}

if (
/(^Chokudai Contest|ハーフマラソン|^HACK TO THE FUTURE|Asprova|Heuristics Contest)/.exec(
/(^Chokudai Contest|ハーフマラソン|HACK TO THE FUTURE|Asprova|Heuristics Contest)/.exec(
contest.title
) ||
/(^future-meets-you-contest|^hokudai-hitachi|^toyota-hc)/.exec(
Expand All @@ -97,15 +97,16 @@ export const classifyContest = (
return "Marathon";
}
if (
/(ドワンゴ|^Mujin|SoundHound|^codeFlyer|^COLOCON|みんなのプロコン|CODE THANKS FESTIVAL)/.exec(
/(ドワンゴ|^Mujin|SoundHound|^codeFlyer|^COLOCON|みんなのプロコン|CODE THANKS FESTIVAL)/i.exec(
contest.title
) ||
/(CODE FESTIVAL|^DISCO|日本最強プログラマー学生選手権|全国統一プログラミング王|Indeed)/.exec(
/(CODE FESTIVAL|^DISCO|日本最強プログラマー学生選手権|全国統一プログラミング王|Indeed)/i.exec(
contest.title
) ||
/(^Donuts|^dwango|^DigitalArts|^Code Formula|天下一プログラマーコンテスト|^Toyota)/.exec(
/(^Donuts|^dwango|^DigitalArts|^Code Formula|天下一プログラマーコンテスト|^Toyota)/i.exec(
contest.title
)
) ||
/(^Recruit|^CodeQUEEN)/i.exec(contest.title)
) {
return "Other Sponsored";
}
Expand Down