Commit cb97219
committed
fix: getRatedTarget を rate_change の "-" 区切りに対応
AtCoder がレーティング対象範囲表記の区切りを "~" から "-" へ変更したため
(例: " - 1999", "2000 -", "1200 - 2799")、"~" のみで split していた
getRatedTarget では新形式のコンテストがすべて Unrated 扱いになり、
コンテスト名横の色ドットや「Other Rated」系コンテストの
ABC-Like / ARC-Like / AGC-Like 分類が正しく行われていなかった。
両方の区切り文字を受け付けるよう変更し、テストを追加した。
https://claude.ai/code/session_01Hsq4dCo1x9ve8W8inoWxe21 parent 7b3c901 commit cb97219
2 files changed
Lines changed: 28 additions & 1 deletion
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
54 | 78 | | |
55 | 79 | | |
56 | 80 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
0 commit comments